Commit graph

99 commits

Author SHA1 Message Date
Christopher Martin 102112ffdd 1.8.6 (#825)
## Fixes
* Fixed Combos and possibly Passives appearing in `/pk b <Ability>` auto-tabbing.
* Fixed Combos not loading properly on certain servers.
* Fixed issue with `PreciousStones` by updating to the latest version to resolve API change issues.
* Fixed `RapidPunch` damage.
* Fixed incorrect summation of chiblocking chance.
* Fixed possible issue in PKListener#onPlayerInteraction()
* Fixed `Earth.LavaSound`.
* Fixed Chi attempting to chiblock targets with any move.
* Fixed hitting an entity with `TempArmor` not ignoring armor.
* Fixed `Immobilize` config path.

## Additions
* Added "Contributing" section to the `README` to help guide active community members.
* Added more detail to the `PULL_REQUEST_TEMPLATE` to allow for more uniform pull requests. 
* Added many new blocks to our ability block interaction.
* Added check to combo collisions to discard dead entities.
* Added functionality to allow chiblocking abilities to affect all entities.
* Added exception handling to the configurable `Sound` options to prevent `IllegalArgumentExcpetions`.
* Added sounds and `ActionBar` messages to being Bloodbent, Electrocuted, Immobilized, MetalClipped, and Paralyzed. (Abilities: `Bloodbending`, `Lightning`, `Immobilize`, `MetalClips`, and `Paralyze`)
* Added sound and `ActionBar` message for being Chiblocked.
* Added interval config option to `RapidPunch`. (time between each punch)

## API Changes
* Updated to `Spigot 1.12.1`.
    * Confirmed to be backward compatible with `Spigot 1.12` and `Spigot 1.11.2`.
* Renamed `ElementalAbility#getTransparentMaterial()` to `ElementalAbility#getTransparentMaterials()`.
* Converted most `byte`/`int` dependent `Material` logic to use `Material` instead. 
    * `ElementalAbility#getTransparentMaterialSet()` now returns a `HashSet<Material>` instead of a `HashSet<Byte>`.
    * `ElementalAbility#getTransparentMaterials()` and `GeneralMethods.NON_OPAQUE` now return `Material[]` instead of `Integer[]`.
    * `GeneralMethods#getTargetedLocation()` now takes a `varargs Material[]` instead of a `varargs Integer[]`.
* Removed `ElementalAbility.TRANSPARENT_MATERIAL`. It was outdated and became irrelevent after `GeneralMethods.NON_OPAQUE` was updated.
* Removed `Java 7` Travi-CI  JDK check.
* Updated `pom.xml` to build in `Java 8`.
* Added new `MovementHandler` utility class to control entity movement. (currently only capable of stopping movement.
2017-08-06 00:18:12 -07:00
Christopher Martin 0ab240cd93 1.8.5 (#813)
## Fixes

* Fixed odd interactions between `Bloodbending` and `AvatarState`.
  * You can no longer be bloodbent while in `AvatarState` and going into the `AvatarState` while being bloodbent will break you free.
* Fixed various errors in `Bloodbending`.
* Fixed `SubElements` being saved incorrectly in the database.
* Fixed a few cases where `Surge` would cause flooding.
* Fixed various NoCheatPlus exemptions in our `DamageHandler`. (Thanks, RoboMWM)
* Fixed ProjectKorra fire tick damage overriding other plugins fire tick damage.
* Fixed `FireSpin` working underwater.
* Fixed `EarthArmor` not properly obeying its cooldown.
* Fixed `Combo Abilities` being displayed in `/pk display <Element>`.
* Fixed `Extraction` cooldown being applied when the ability couldn't start.
* Fixed `EarthTunnel` cooldown being applied when the ability couldn't start.
* Fixed `IceSpike` field functionality not activating on `PhaseChange` blocks.
* Fixed `FireWheel` hit location if used while looking down.
* Fixed `Lightning` paralyze functionality.
* Fixed `DensityShift` causing fall damage if used on other `DensityShift` blocks.
* Fixed `Flight` cooldown being applied when the ability couldn't start.
* Fixed `Flight` deactivating if used while on the ground.
* Fixed `RapidPunch` cooldown being applied when the ability couldn't start.
* Fixed `WaterArms` not returning water sources to bottles.
* Fixed `WaterArms` not grabbing sources correctly.
* Fixed `CollisionManager` attempting to detect collisions between abilities in different worlds. (Thanks, plushmonkey)
* Fixed `CollisionManager` not resetting when a new manager is created.
* Fixed `JetBlaze` and `JetBlast` not overriding `FireJet` duration.
* Fixed `PhaseChange` not being able to melt snow blocks.
* Fixed `FastSwim` being able to be used on a `Catapult` slot.
* Fixed `FireManipulation` cooldown.
* Fixed `Collapse` and `RaiseEarth`not working in `AvatarState`.
* Fixed Waterbending causing concrete powder to harden.
* Fixed `MetalClips` magnetize not pulling iron ingots if players had them in their hand.
* Fixed `MetalClips` not disabling passives such as `FastSwim` on its targets.
* Fixed `MetalClips` armor absorbing damage.
* Fixed `MetalClips` magnetize not pulling if the launching portion of the move is on cooldown.
* Fixed `MetalClips` not dropping iron ingots once a held target is killed.
* Fixed `MetalClips` duplicating iron ingots by repeatedly hitting and pulling entities.
* Fixed `MetalClips` duplicating iron ingots by hitting blocks. 
* Fixed addon Passive abilities not registering.
* Fixed `/pk help <Element>` displaying incorrect/old links.
* Fixed `/pk help <Element/Combo>` being case sensitive.
* Fixed `/pk help` not allowing players to auto tab all non-hidden abilities.
* Fixed `IllegalArgumentException` being thrown if server owners put an incorrect `ChatColor` for the `Chat.Branding.Color` value in `language.yml`.
* Fixed `EarthArmor` allowing players to use `FastSwim` while the armor is activated.
* Fixed incorrect cancellation of `BlockBreakEvent` when players bending is toggled off.
* Fixed multiple instances of the same `CoreAbility` being present in auto tabbing due to certain move functionalities being split up between files.
* Fixed Passive abilities and Combo abilities showing up in `/pk bind <Ability>` auto tabbing.
* Fixed `WaterWave` and `WaterSpout` cohesive movement.
* Fixed `DamageHandler` applying `DamageModifier.ARMOR` where it is not applicable.
* Fixed `/pk check` command URL.
* Fixed Passive abilities breaking when choosing an element while bending is toggled.
* Fixed `WaterBubble` removing blocks placed by players while the ability is active.
* Fixed potential infinite loop in `EarthGrab`.
* Fixed `AirScooter` not disabling when a player would sneak.

## Additions

* Added cooldown capability to `AirShield`, `AirSpout`, `Tornado`, `FastSwim`, `WaterBubble`, `EarthTunnel`, `AcrobaticStance`, and `WarriorStance`.
* Added the clickable ProjectKorra branding message to the `/pk help` and `/pk who` commands.
* Added `radius` config option to `EarthGrab`.
* Added AvatarState configuration options for `IceSpike`, `IceBlast`, `Torrent`, `OctopusForm`, `WallOfFire`, `WaterSpout`, and all stock Combos.
* Added aesthetic donation perk servers can give to their players in the `/pk who <Player>` command via the `bending.donor` permission.
* Added config option for the lightning bending sound and lava bending sound.
* Added `Pitch` and `Volume` config options for all configurable sounds.
* Added identifiers on Addon Abilities in `/pk help <Ability>` and `/pk display`.

## General Changes

* Reduced default config values of `AvatarState` ability modifiers.
* Changed the way abilities display in `/pk help <Ability>`
     * Abilities now display whether they are Addons or not.
     * Abilities now display whether they are Combos or Passives.
     * Addon Abilities display their author and version.
* Improved `AirScooter` behavior. It isn't perfect yet, but it is better.
* Changed `EarthArmor` so it now breaks when a player teleports.
* Changed cobblestone and obsidian created by `AirBlast` to `TempBlocks`.
* Changed `/pk add Avatar` to add all four main elements.

## API Changes

* Added `RevertTask` which runs whenever `TempBlock#revertBlock()` is called.
* Moved `BendingPlayer` creation to a separate thread.
* Changed initial `BendingPlayer` database storage to insert default values.
* Improved `CollisionManager` performance by removing unnecessary detections.
* Put logic in place to remove ability instances causing exceptions without breaking all other running abilities. (Thanks, PhanaticD)
* Changed `PassiveManager` storage so Passive abilities are be stored by name/class instead of by `Element`.
* Removed `PassiveManager#getPassivesByElement()`.
* Added `CoreAbility#unloadAbility(Class clazz)` to unload an ability from a server.
* Added `CoreAbility#getAddonPlugins()` to get the names and paths of all currently loaded addon plugins. Returned format: `<plugin name>::<abilities path>`
* Changed `/pk reload` to add support for addon plugin reloading.

## Removals

* Removed the Minecraft version from the `/pk version` command.
* Removed `SandSpout`.
* Removed `SandRun` remnant from `EarthPassive`.
* Removed `AirBlast` collisions with other basic moves.
2017-08-03 21:54:22 -07:00
Christopher Martin 0b1bd99bbf 1.8.4 (#769)
* Fix OctopusForm (#734)

* Reload changes

* Catapult Fixes

* Catapult Adjustment

* Changes

* OctopusForm fix

* Attribute System + FireBlast example (#735)

* Attribute System + FireBlast example

* Removed PK jar 😃 💃

* Fixes Chi Descriptions/Instructions, Removes Fire Passive (#737)

* Fixes missing Chi ability descriptions and instructions

https://trello.com/c/3vto7SEn/734-re-add-paralyze-and-rapidpunch-descrip
tions-and-instructions

* Removes FirePassive

Was discussed in CD chat
https://trello.com/c/skKfHiwR/733-convert-firebending-passive-to-the-new
-passive-system

* Change Octoform freezing (#741)

* Reload changes

* Catapult Fixes

* Catapult Adjustment

* Changes

* OctopusForm fix

* Change Octoform Freezing

* Revert "Change Octoform Freezing"

This reverts commit d5745fe3171b0e24682631889322d81f153d73bd.

* Revert "Revert "Change Octoform Freezing""

This reverts commit 9a91730e0fec7c428f619ffca14e4ea467298b37.

* Changed attributes to use plain reflection rather than annotations (#743)

* should fix some issues with octopusform (#742)

when this .remove() is called nothing has happened with this instance, so the old tempblocks/phasechange never actually get removed, and we get nullpointers trying to remove the ones for this instance since they were never even created

* Fixed external elements, subelements and abilities not loading (#745)

Due to plugins that depend on ProjectKorra loading in AFTER pk, when a
BendingPlayer object is created, all the external elements, subelements
or abilities they may have are lost because they are caught in the null
checks.
To work around this, we will continuously loop every second for 30
seconds until the request times out. If any elements/abilities the user
has haven't loaded in, in that time (the side plugin has taken longer
than 30 seconds to load), then it will time out and report it in the
console.

* New Attribute System (#746)

• New Attribute System (WIP)
• Fields should now be marked with @Attribute(Attribute.DAMAGE) or
whatever the relevant attribute is.
• If the Attribute you want is not there, you can provide a string
instead
• At runtime, these Attributes can be changed with
Attributes.modify(ability/element, attribute, modifier)
• Air and Chi have all been marked with @Attribute annotations
• Updated Particlelib - Fixed bug with dragonbreath and endRod particles
being wrong. AND added new 1.11 particles.

* Adding blocks to the world async is not allowed (#744)

* Wip (#748)

* Fixed *abilitis* typo in Shockwave description

* fixed: WaterSpout not working on PACKED_ICE - cause was looking for nonexistent config boolean, instead of at Properties.Water.IceBlocks list

* Plant block removal and /b add all feature (#749)

* Fixed *abilitis* typo in Shockwave description

* fixed: WaterSpout not working on PACKED_ICE - cause was looking for nonexistent config boolean, instead of at Properties.Water.IceBlocks list

* Fixed: Surge and WaterArms not removing plant block

* New Feature: /bend add all [player]

* fixed passives not enabling on /bend toggle all (#751)

* fixed passives not enabling on /bend toggle all

* Correct/Update comment to act as a TODO note.

* Fix spectator target (#753)

* Don't target spectators

* Remove debug code

- Remove stick debug code that was causing a NullPointerException.

* Change block set order when moving earth (#754)

- Set the source block to air after setting the target block to the new
  type. This will eliminate temporary holes, which minimizes major lighting
  updates.

* Fix exceptions (#752)

* Fix world check when sending particles

- Check by World reference rather than string name comparison. The following
  Location distanceSquared call will throw an exception if the World names
  are the same but references aren't.

* Fix several exceptions

- Destroy LavaFlow instance when the Player leaves the World.
- Destroy Torrent instance when the Player leaves the World.
- Fix cooldown exception when Player is null.

* PhaseChange Speed option added (#756)

• Delay option changed to speed
• Fixed EarthArmor breaking when a player is paralyzed.

* FireManip, WaterBubble & 1.12 (#757)

• Added basic FireManipulation. Still needs lots of improving, but
that's for another commit.
• Redone WaterBubble. Now has a click version and an expand/shrink
animation.
• Removed AirBubble
• Updated Spigot to 1.12
• Fixed Octopus NPE
• Fixed EarthArmor remaining after TPs to other worlds

* EarthTunnel - DropLootIfNotRevert (#759)

* .gitignore - Added ignores for IntelliJ

* EarthTunnel: DropLootIfNotRevert - config & functionality

* .gitignore - Added ignores for IntelliJ

* EarthTunnel: DropLootIfNotRevert - config & functionality

* Bug Fixes (Catapult, Illumination, Config) (#760)

* Bug Fixes (Catapult, Illumination, Config)

* Finish Fixing Illumination

* Fix Catapult angle

* Fix Catapult bug

* Angle cancel option Catapult

* Fix Illumination on leaves, Fix water flooding

* Config stuff for Toby

* Fix LavaFlow (#755)

Fixed "AllowNaturalFlow"

* Updated to 1.12 with for days (#761)

• Redone the (core) ability load system - The old one broke with the
Guava update in 1.12
• Fixed some WaterBubble floods
• Fixed PhaseChange melting snow super duper fast
• Fixed some other misc bugs
• Added 1.12 Spigot to classpath

* 1.12 Bug Fixes (#762)

* Bug Fixes (Catapult, Illumination, Config)

* Finish Fixing Illumination

* Fix Catapult angle

* Fix Catapult bug

* Angle cancel option Catapult

* Fix Illumination on leaves, Fix water flooding

* Config stuff for Toby

* 1.12 fixes

* More 1.12 fixes (#763)

* Bug Fixes (Catapult, Illumination, Config)

* Finish Fixing Illumination

* Fix Catapult angle

* Fix Catapult bug

* Angle cancel option Catapult

* Fix Illumination on leaves, Fix water flooding

* Config stuff for Toby

* 1.12 fixes

* More 1.12 Fixes

* Collision fixes, Air sound change,

* Tried Fixing Collisions

Currently the loops in
CollisionInitializer#initializeDefaultCollisions() don't work

* 1.8.4 Fixes (#764)

* Small 1.8.4 fixes

• Fixed selecting snow blocks as a water source not working when they
are more than 3 blocks away
• Fixed DensityShift turning lava into sand when you land softly
• Fixed IceBlast not working on TempBlocks

* Added FireManip particle options to config

Also removed a sneaky debug message

* 1.8.4 Fixes (#765)

* Redone Fire Combos (#766)

* Finalize Fire Combo split (#767)

* 1.8.4 Fixes

* Correct Fire Combos

* Remove unused imports
2017-06-13 00:54:30 -07:00
Simplicitee f2889b7fd4 Reload changes (#731) 2017-02-16 19:10:03 -08:00
Sobki da2b04a01c Fixed issue with text formatting being removed on new lines (#728) 2017-02-11 13:06:32 -08:00
Sobki 29a6cb8d05 New branding stuff (#726) 2017-02-10 21:02:40 -08:00
StrangeOne101 477d02c673 Few fixes here, here and maybe there (#724)
• Fixed CoreAbility.getAbilities() not returning addon abilities
• Fixed errors spammed from /b w when the server can't fetch the staff
list
• Fixed /b d passives - now displays all possible passives
• Fixed /b t <sub> causing an internal error
• Fixed a lot of NPEs
2017-02-06 15:09:02 -08:00
Sobki e8df4895b9 Changes to branding (#721)
* Changes to branding

* Fixed java 8 crap

* whoops missed some cause im an idiot
2017-02-04 20:57:52 -08:00
Sobki 14bdf056e4 Remove Warnings (#707) 2017-01-22 00:48:20 -08:00
Christopher Martin 885c59ef17 Various Fixes part two (#705)
* Various Fixes

* Various Fixes
2017-01-20 21:03:36 -08:00
Christopher Martin 102ea0c3c0 Various Fixes (#704)
* Various Fixes

* Merge cooldown change
2017-01-19 23:44:13 -08:00
Sobki 9fa1810e71 1.8.2 (#697) 2017-01-15 22:48:20 -08:00
Loony 6885e0b4ba Re-organises packages (#685)
* Re-organises packages

* Re-adds instructions display in the help command
2017-01-06 22:28:21 -08:00
Christopher Martin f4a367837d Various Fixes with LavaFlow and EarthTunnel plus some Extra (#669)
* Various Changes

* Remove Debug Message.

* Fix Immobilize.
2017-01-02 02:33:08 -08:00
StrangeOne101 7a046e793a Added Kingdoms Support (#667)
• Added Kingdom Support
• Fixed some bugs with `isRegionProtectedFromBuildPostCache`
2016-12-29 12:37:33 -08:00
Loony 9d15d8b122 Bug Fixes (#664)
* Fixes AirScooter Speed Glitch

Fixes being able to autorun with AirScooter (CTRL) to go insanely fast

* Adds golden tools

Fixes an issue that didn’t include golden tools in CanBendWithWeapons.

* Adds cooldown to QuickStrike, fixes QuickStrike and SwiftKick not activating

* Fixes HighJump cooldown activating when the ability hasn't worked

* Fixes SwiftKick and QuickStrike not working properly and RapidPunch not working half the time

* Fixes FireWheel and AirSwipe being stopped by snow on the ground

* Makes QuickStrike do one heart
2016-12-26 22:26:06 -08:00
Simplicitee 5ad7f1f3b5 PhaseChange recode and EarthGrab fix (#661)
* Fix metalclips

- Removed a check that was preventing metalclips from progressing past 1 clip on a target.

* Fix metalclips

- Fixed a bug limiting the metal clip count to one

* Improve MetalClips

- Fixed bug where shooting at a block spawned two clips
- Added ShootCooldown and CrushCooldown
- ShootCooldown only applies to shooting clips
- Changed how crushing works:
--- Removed old style and variables
--- When controlling an entity with 4 clips, the controller can click to
cause the armor to "crush" and damage the entity.
--- Has own cooldown, default of 2000 (2 seconds)
- Changed launching
--- Works with all clip amounts except 4
--- When the user releases sneak, the entity will be launched at varying
power depending on how many clips were attached.
- Changed ability cooldown to activate only after the ability is
finished.

* Add CrushDamage option to MetalClips

* New Damage Type, MetalClips changes

- Fixed MetalClips bug caused in magnetizing
- Added ignoreArmor option to damageEntity method, default true for most
abilities. If wanted to be changed, someone needs to go through and add
false as a parameter
- Changed default config option for MetalClips description

* PhaseChange recode

* Chris wanted changes

* Chris doesn't want bugs

* Only you can prevent bugs

- Added checks for worlds to prevent errors

* Remove unnecessary auto generated comments

* Loony didn't like the passive

* Added RegionProtection checks

* PhaseChange

* Revert "PhaseChange"

This reverts commit 761c73f5756771674719ffca52413cffa09243a8.

* Revert "Added RegionProtection checks"

This reverts commit b53a02a74d0276d4d1e773e1c197666cbcfab624.

* Revert "Loony didn't like the passive"

This reverts commit 6612bb7fa8eea3e26c01d0ef761c658447779e03.

* Revert "Remove unnecessary auto generated comments"

This reverts commit da9c45106d0b7e256c278e6a84d15f7a7340a140.

* Revert "Only you can prevent bugs"

This reverts commit 630161659ea89bfb106924c8ab1fbcdb8f6f1310.

* Revert "Chris doesn't want bugs"

This reverts commit eda2dee6b52dd38c73f35680c5e4484adc5b5b91.

* Revert "Chris wanted changes"

This reverts commit 30b76c10c4adc63784ea7115eb4f9c636650d6c5.

* Revert "PhaseChange recode"

This reverts commit f8f290dd8c57a3467a87de7e43b58ce635196c62.

* Conflicts

* Stupid conflicts

* I hope and pray

* Revert "Revert "Chris wanted changes""

This reverts commit e612607c8a16a735c92014714c00aa671954b4a5.

* Revert "Revert "Chris doesn't want bugs""

This reverts commit bd656b814d7ffa2d9c84fa304d3adb8f1535f782.

* Revert "Revert "Only you can prevent bugs""

This reverts commit 7772c95737130cf414ff1af49dcfb48865be5374.

* Revert "Revert "Remove unnecessary auto generated comments""

This reverts commit 69315dc7baa6cd237fbd89394e544913596ec6e3.

* Revert "Revert "Loony didn't like the passive""

This reverts commit ea397c6323e50d219395d5912850513afd6f2a7b.

* Revert "Revert "Added RegionProtection checks""

This reverts commit 8cb41709f65e4322e68b2f0e1792987f7fc214f2.

* Revert "Revert "PhaseChange""

This reverts commit da6b0e7071acf74df6447b15daf4ae6e39f057f6.

* Working PhaseChange finally

* Fix EarthGrab

* Air fixes, PhaseChange changes
2016-12-19 20:43:56 -08:00
Josh f5ead493a0 Fixes an IllegalArgumentException (#640)
* Fixes an IllegalArgumentException

* Correct change and make it fit our format
2016-10-30 23:06:42 -07:00
Nathan Braun 5096d3d399 Implemented new collision detection system (#636) 2016-10-23 23:23:02 -07:00
Sobki d34c1ffc20 New HeatControl & fixed NPE (#633)
* New HeatControl & NPE fix

* Updated to latest

* Cleaned up HeatControl

* Updated PKListener to use HeatControlType instead of Function

* Cleaned up, cleaned up HeatControl

* Removed melt(...)

* Final changes
2016-10-22 23:03:05 -07:00
Alexander Meech 2fdc59c0a5 Update (#627)
* Update the interactable materials array to remove unnecessary materials

* Remove shaded jsoup lib and change the remote staff fetcher to load and parse a txt file instead of an html file
2016-10-18 19:43:00 -07:00
Christopher Martin a43c965e5b Various Fixes (#626)
* Various Fixes
2016-10-18 16:29:42 -07:00
Echo 030a241a60 LavaFlow on ceilings (#624)
* LavaFlow may now be used on ceilings.
2016-10-18 12:38:32 -07:00
Christopher Martin 3c41c611b9 Add Changes to HealingWaters and Fix for Distance bug (#610)
* Add Changes to HealingWaters and Fix for Distance bug

* Fix conflicts in EarthGrab.java

* Fix conflicts in ConfigManager.java

* Fix conflicts in EarthGrab.java
2016-10-14 21:32:15 -07:00
StrangeOne101 41aa71aa2b 1.9.0 Changes (#595)
* 1.9.0 Changes

• Rewritten GeneralMethods.getEntitiesAroundPoint - Now more effecient
and less draining on the server
• Rewritten EarthArmor - Now gives gold hearts instead of resistance.
• Added TempArmor class - Self explanitory
• Changed bottlebending permission from bending.ability.WaterReturn to
bending.ability.Bottlebending
• Fixed syntax when removing elements from youself

* More EarthArmor Changes

• Made the amount of gold hearts that EarthArmor gives configurable
• Changed default EarthArmor description
• Removed EarthArmor config options that are no longer used
• Converted more ConcurrentHashMaps to be generic map types
2016-10-11 12:41:30 -07:00
Christopher Martin fad2f5542b Various Fixes (#591)
* Fix Spout speed limiting

* Fix Tremorsense, particle distance, help autotabbing, and sandspout flight
2016-10-08 21:32:09 -07:00
Sobki 3d4a779514 Updates for Acrobat & Warrior Stance (#584) 2016-09-28 00:18:48 -07:00
Sobki 384b5662b8 Changes: Paralyze, WaterArms, AirBubble, Illumination (#564)
* Fix/Improvement to WaterArms Grapple, WaterArms FastSwim, Paralyze

* Fixed Illumination as passive, Fixed AirBubble taking Nightfactor
2016-08-28 14:23:42 -07:00
Dylan Curzon 7530e0bae1 Make DBConnection#init sync and remove async from bending player creation (#562)
* Add optional 'async' boolean parameter to Database, make DBConnection#init sync

* Add temporary debug message

* Add 'syncronized' keyword to doQuery method on Database (just in case I/O errors)

* Remove unnecessary (and breaking) async from bending player creation

* Add javadoc to Database#modifyQuery(String, Boolean)
2016-08-27 14:09:00 -07:00
StrangeOne101 7124bf7ded Final Fixes :D (#530)
• Added new message for failing to bind abilities when the user doesn't
have the required subelements
• Fixed PhaseChange not reverting melted ice
• Fixed LavaFlow not creating lava under double plants
• Fixed double plants dropping items when used as water sources
2016-08-08 15:35:27 -07:00
Loony 693f3f61eb Adds config option to Bending Preview (#526)
* Fixes NPE with surge wave & bottles

* Fixed bracket :S

For some reason it PR'd my bracket and code separate? Weird.

* Changed dayfactor placement so that it's correct with avatar state factor

* Added config option for Bending Preview
2016-07-29 11:21:55 -07:00
OmniCypher 3c2f26a962 Added Bending Preview Move Display (#525) 2016-07-28 18:02:25 -07:00
StrangeOne101 80d2b64dd3 Bloodbending + Other fixes (#513)
• Fixed binds being removed when non-ops relog
• Fixed Lavaflow destroying plants and flowers
• Fixed Bloodbending being spammed
• Fixed Bloodbending being able to bloodbending grouped players
• Fixed Bloodbending in the AvatarState from going haywire
• Fixed Bloodbending having no default cooldown
• Fixed PK Side Plugins (Items, Probending) from showing up in the wrong
place in the debug file
2016-07-06 15:16:05 -07:00
StrangeOne101 ff64cf9ca2 Some changes and fixes (#510)
* Various Fixes

• Added Java version to debug.txt file
• Added Probending to the debug.txt file (and added PB methods)
• Changed layout of debug.txt file
• Fixed AddonAbilities with the same name as Stock abilities always
being disabled
• Fixed AcrobatStance and WarriorStance effects still being applied when
the user is no longer a chiblocker

* Changed all ConcurrentHashMaps to use generic map types

• As the title says, it's an attempt to fix a Java 7/8 error in
ConcurrentHashMaps. All Maps are still concurrent but their type is just
a generic map, not a concurrent one.
• Fixed FireBlast damage being slightly off

* Fixed Java 7 Compile Errors
2016-06-29 13:12:45 -07:00
StrangeOne101 dd6bc984ba Various fixes
* Lots of Fixes

• Added 1.9 and 1.10 particle effects
• Fixed Particle Effect version from being wrong
• Fixed {ability} not being replaced when trying to bind non-existent
move
• Fixed permremoving command not sending a message to the executor
• Fixed remove command sending user 2 remove messages if they removed
their own bending
• Fixed who command not replacing {target} in message for players that
aren't found
• Fixed Chat prefixes not being in the language file

* Fixed Chat Prefixes

• Fixed chat prefixes from not generating in language.yml file
• Added Nonbender prefix

* Fixed Waterbending Bugs

• Fixes waterbending getting a super far away source when selecting
under water
• Water from Bottlebending now shows bubbles when under water

* Fixed WaterWave & WaterManip Bugs

• Fixed WaterManipulation disappearing when the player taps shift
• Fixed being able to use current WaterManips as sources for other
WaterManips
• Fixed WaterWave being able to use more sources while spinning around
the player

* OfflinePlayer lookup fix + IceWave DeathMessage

• Fixed IceWave not having a death message
• Fixed /b who not working on offline players

* Fixed bad english ;-;

* Changes + Fixes

• Added Properties.TogglePassivesWithAllBending config option (whether
passives should be toggled when bending is toggled globally)
• Changed chat prefixes
• Re-enabled WarriorStance
• Fixed IceBlast being removed when pressing shift
• Fixed IceWave and IceBullet from having the wrong colored death
messages
• Fixed not being able to select ice and plants as sources for
WaterManip
• Fixed help command showing hidden abilities (WaterReturn, etc)
• Fixed WaterManip turning ice sources to air
2016-06-19 09:41:18 -07:00
StrangeOne101 4cad1dd5c3 Fixed Disabled Abilities Loading
• Fixes disabled abilities still being able to be bound (some) and used
• Fixes Torrent flood issue with bottlebending
• Fixed Combos not being able to be disabled
2016-06-12 16:47:00 +12:00
OmniCypher ddda2ecbf8 Adds BendingPlayerCreationEvent and moves login
Moves login method to GeneralMethods and renames it to loadBendingPlayer
Fixes Prefix assigning in loadBendingPlayer
2016-03-31 23:25:05 -07:00
StrangeOne101 1a482cf6dd Fix Bending in GriefPrevention Regions
• Fixed bending being allowed in GP zones
2016-03-30 13:54:15 +13:00
StrangeOne101 3c216cebad Update Subelement Lingo
• Updated all commands to treat subelements as elements in certain
circumstances (add, remove, etc)
• Updated tabbing with bug fixes
• Database will now update player's subs when they log in for the first
time (post update)
• Removed "SubElementAdded" field from config
• Fixed /b choose not taking aliases
2016-03-14 22:07:33 +13:00
Benford f273e2f734 Merge remote-tracking branch 'refs/remotes/ProjectKorra/master' 2016-03-13 15:33:04 -04:00
Benford 105dc8b005 Various changes
- Changed BindChangeEvent call spot
- Changed subelements to be stored in database
- Changed choose command to accept subelements as an argument
- Changed add command to accept subelements as an argument
- Changed all canBend<SubElement> methods
- Added PlayerChangeSubElementEvent
- Added saveSubElements() method to GeneralMethods
- Cleaned up imports in various classes
- Removed print out in damagehandler
2016-03-13 15:16:01 -04:00
jedk1 a922b8bd17 Add support ready for when spirits is added. 2016-03-10 18:26:16 +00:00
FinnBueno 4380102f39 Adding language.yml -- Removed deathmessages.yml
Added a language.yml in which almost every message in the plugin can be
found. I moved the move descriptions, and death messages to that file,
so the deathmessages.yml has been removed, because it has nothing in it
anymore.
2016-03-05 12:12:31 +01:00
savior67 ed0109d2f4 - damageEntity function moved out of GeneralMethods into DamageHandler
- All damaging abilities now invoke DamageHandler.damageEntity
2016-03-05 01:25:45 +01:00
FinnBueno bcf91e6859 Added a language.yml 2016-03-05 01:17:17 +01:00
Benford cdfdcb570d Add Residence plugin support
- Added two new config options, Residence.Respect and Residence.Flag (in
the according spot)
- Residence.Respect will respect if true
- Residence.Flag specifies the flag that needs to be set to true for
bending to be enabled in a residence.
- Is put in isRegionProtected methods
2016-02-26 19:39:44 -05:00
jedk1 78a341e636 Fix NPE with Custom Elements 2016-02-25 00:15:52 +00:00
jedk1 042866ec62 Add support for custom elements 2016-02-24 23:23:03 +00:00
Philip Stephenson b6e4e088f5 Add CommandSender to BendingReloatEvent, cleanup other events 2016-02-21 20:43:36 -05:00
Philip Stephenson c0fe8256b7 Remove unneeded damageEntity method, update events
- change EntityBendingDeath and HorizontalVelocityChange to use Ability objects, instead of strings

- update abilities to reflect changes
2016-02-21 16:01:28 -05:00