TF-ProjectKorra/src/com/projectkorra/projectkorra/waterbending/multiabilities/WaterArmsWhip.java

675 lines
19 KiB
Java
Raw Normal View History

package com.projectkorra.projectkorra.waterbending.multiabilities;
2015-05-31 14:19:50 +00:00
import java.util.HashMap;
2015-05-31 14:19:50 +00:00
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Creature;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
import com.projectkorra.projectkorra.GeneralMethods;
import com.projectkorra.projectkorra.ability.WaterAbility;
import com.projectkorra.projectkorra.ability.util.MultiAbilityManager;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
import com.projectkorra.projectkorra.attribute.Attribute;
import com.projectkorra.projectkorra.command.Commands;
import com.projectkorra.projectkorra.util.DamageHandler;
import com.projectkorra.projectkorra.util.TempBlock;
import com.projectkorra.projectkorra.waterbending.multiabilities.WaterArms.Arm;
2015-05-31 14:19:50 +00:00
2016-01-13 21:14:34 +00:00
public class WaterArmsWhip extends WaterAbility {
2015-05-31 14:19:50 +00:00
/**
* Whip Enum value for deciding what ability should be executed.
*/
2016-01-13 21:14:34 +00:00
public static enum Whip {
PULL, PUNCH, GRAPPLE, GRAB;
2015-05-31 14:19:50 +00:00
}
2016-01-13 21:14:34 +00:00
private static final HashMap<LivingEntity, WaterArmsWhip> GRABBED_ENTITIES = new HashMap<LivingEntity, WaterArmsWhip>();
private boolean reverting;
private boolean hasDamaged;
private boolean grappled;
private boolean grabbed;
private boolean grappleRespectRegions;
private boolean usageCooldownEnabled;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("WhipLength")
2016-01-13 21:14:34 +00:00
private int whipLength;
private int whipLengthWeak;
private int whipLengthNight;
private int whipLengthFullMoon;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("InitialLength")
2016-01-13 21:14:34 +00:00
private int initLength;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("PunchLength")
2016-01-13 21:14:34 +00:00
private int punchLength;
private int punchLengthNight;
private int punchLengthFullMoon;
private int activeLength;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("WhipSpeed")
2016-01-13 21:14:34 +00:00
private int whipSpeed;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("GrabDuration")
private long grabDuration;
@Attribute(Attribute.COOLDOWN)
2016-01-13 21:14:34 +00:00
private long usageCooldown;
private long time;
2016-01-13 21:14:34 +00:00
private double pullMultiplier;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
@Attribute("PunchDamage")
2016-01-13 21:14:34 +00:00
private double punchDamage;
private double playerHealth;
2015-05-31 14:19:50 +00:00
private Arm arm;
private Whip ability;
2016-01-13 21:14:34 +00:00
private LivingEntity grabbedEntity;
2017-01-16 06:48:20 +00:00
private Location end;
2016-01-13 21:14:34 +00:00
private WaterArms waterArms;
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public WaterArmsWhip(final Player player, final Whip ability) {
2016-01-13 21:14:34 +00:00
super(player);
2017-01-16 06:48:20 +00:00
2016-01-13 21:14:34 +00:00
this.ability = ability;
this.reverting = false;
this.hasDamaged = false;
this.grappled = false;
this.grabbed = false;
this.grappleRespectRegions = getConfig().getBoolean("Abilities.Water.WaterArms.Whip.Grapple.RespectRegions");
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.usageCooldownEnabled = getConfig().getBoolean("Abilities.Water.WaterArms.Arms.Cooldowns.UsageCooldown.Enabled");
2016-01-13 21:14:34 +00:00
this.whipLength = getConfig().getInt("Abilities.Water.WaterArms.Whip.MaxLength");
this.whipLengthWeak = getConfig().getInt("Abilities.Water.WaterArms.Whip.MaxLengthWeak");
this.whipLengthNight = getConfig().getInt("Abilities.Water.WaterArms.Whip.NightAugments.MaxLength.Normal");
this.whipLengthFullMoon = getConfig().getInt("Abilities.Water.WaterArms.Whip.NightAugments.MaxLength.FullMoon");
this.initLength = getConfig().getInt("Abilities.Water.WaterArms.Arms.InitialLength");
this.punchLength = getConfig().getInt("Abilities.Water.WaterArms.Whip.Punch.MaxLength");
this.punchLengthNight = getConfig().getInt("Abilities.Water.WaterArms.Whip.Punch.NightAugments.MaxLength.Normal");
this.punchLengthFullMoon = getConfig().getInt("Abilities.Water.WaterArms.Whip.Punch.NightAugments.MaxLength.FullMoon");
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.activeLength = this.initLength;
this.whipSpeed = 1;
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
this.grabDuration = getConfig().getLong("Abilities.Water.WaterArms.Whip.Grab.Duration");
2016-01-13 21:14:34 +00:00
this.pullMultiplier = getConfig().getDouble("Abilities.Water.WaterArms.Whip.Pull.Multiplier");
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
this.punchDamage = getConfig().getDouble("Abilities.Water.WaterArms.Whip.Punch.Damage");
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
switch (ability) {
case PULL:
this.usageCooldown = getConfig().getLong("Abilities.Water.WaterArms.Arms.Cooldowns.UsageCooldown.Pull");
break;
case PUNCH:
this.usageCooldown = getConfig().getLong("Abilities.Water.WaterArms.Arms.Cooldowns.UsageCooldown.Punch");
break;
case GRAPPLE:
this.usageCooldown = getConfig().getLong("Abilities.Water.WaterArms.Arms.Cooldowns.UsageCooldown.Grapple");
break;
case GRAB:
this.usageCooldown = getConfig().getLong("Abilities.Water.WaterArms.Arms.Cooldowns.UsageCooldown.Grab");
break;
default:
this.usageCooldown = 200;
}
final WaterArmsWhip waw = getAbility(player, WaterArmsWhip.class);
2016-01-13 21:14:34 +00:00
if (waw != null) {
if (waw.grabbed) {
waw.grabbed = false;
if (waw.grabbedEntity != null) {
2016-01-13 21:14:34 +00:00
GRABBED_ENTITIES.remove(waw.grabbedEntity);
GeneralMethods.setVelocity(this, waw.grabbedEntity, waw.grabbedEntity.getVelocity().multiply(2.5));
}
return;
}
2016-01-16 21:07:14 +00:00
if (!waw.arm.equals(getAbility(player, WaterArms.class).getActiveArm())) {
return;
}
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.getAugments();
this.createInstance();
2015-05-31 14:19:50 +00:00
}
2015-06-04 23:30:11 +00:00
private void getAugments() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.ability.equals(Whip.PUNCH)) {
this.whipLength = this.punchLength;
2015-06-04 23:30:11 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final World world = this.player.getWorld();
2016-01-13 21:14:34 +00:00
if (isNight(world)) {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (this.ability.equals(Whip.PUNCH)) {
if (isFullMoon(world) && !GeneralMethods.hasRPG()) {
this.whipLength = this.punchLengthFullMoon;
} else {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
this.whipLength = this.punchLengthNight;
2015-05-31 14:19:50 +00:00
}
} else {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (isFullMoon(world) && !GeneralMethods.hasRPG()) {
this.whipLength = this.whipLengthFullMoon;
} else {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
this.whipLength = this.whipLengthNight;
2015-05-31 14:19:50 +00:00
}
}
}
}
private void createInstance() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms = getAbility(this.player, WaterArms.class);
if (this.waterArms != null) {
this.waterArms.switchPreferredArm();
this.arm = this.waterArms.getActiveArm();
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
this.time = System.currentTimeMillis() + this.grabDuration;
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.playerHealth = this.player.getHealth();
if (this.arm.equals(Arm.LEFT)) {
if (this.waterArms.isLeftArmCooldown() || this.bPlayer.isOnCooldown("WaterArms_LEFT")) {
2015-05-31 14:19:50 +00:00
return;
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.usageCooldownEnabled) {
this.bPlayer.addCooldown("WaterArms_LEFT", this.usageCooldown);
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.setLeftArmCooldown(true);
2015-05-31 14:19:50 +00:00
}
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.arm.equals(Arm.RIGHT)) {
if (this.waterArms.isRightArmCooldown() || this.bPlayer.isOnCooldown("WaterArms_RIGHT")) {
2015-05-31 14:19:50 +00:00
return;
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.usageCooldownEnabled) {
this.bPlayer.addCooldown("WaterArms_RIGHT", this.usageCooldown);
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.setRightArmCooldown(true);
2015-05-31 14:19:50 +00:00
}
}
} else {
2015-05-31 14:19:50 +00:00
return;
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (!this.waterArms.isFullSource()) {
this.whipLength = this.whipLengthWeak;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.start();
2015-05-31 14:19:50 +00:00
}
2016-01-13 21:14:34 +00:00
@Override
public void progress() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (!hasAbility(this.player, WaterArms.class)) {
this.remove();
2015-05-31 14:19:50 +00:00
return;
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
} else if (this.player.isDead() || !this.player.isOnline()) {
this.remove();
2015-05-31 14:19:50 +00:00
return;
2017-01-16 06:48:20 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (!MultiAbilityManager.hasMultiAbilityBound(this.player, "WaterArms")) {
this.remove();
2015-05-31 14:19:50 +00:00
return;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.activeLength < this.whipLength && !this.reverting) {
this.activeLength += this.whipSpeed;
} else if (this.activeLength > this.initLength) {
if (!this.grabbed) {
this.activeLength -= this.whipSpeed;
2015-05-31 14:19:50 +00:00
}
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.remove();
2015-05-31 14:19:50 +00:00
return;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.activeLength >= this.whipLength && !this.grabbed) {
this.reverting = true;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.grabbed && (System.currentTimeMillis() > this.time || this.playerHealth > this.player.getHealth())) {
this.grabbed = false;
this.reverting = true;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.useArm();
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (this.end != null) { //not 100% sure if this null check is a root cause fix or not
this.dragEntity(this.end);
}
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
private boolean canPlaceBlock(final Block block) {
if (!isTransparent(this.player, block) && !(isWater(block) && TempBlock.isTempBlock(block))) {
return false;
2016-01-13 21:14:34 +00:00
} else if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation())) {
2015-05-31 14:19:50 +00:00
return false;
}
return true;
}
private void useArm() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.waterArms.canDisplayActiveArm()) {
Location l1 = null;
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.arm.equals(Arm.LEFT)) {
l1 = this.waterArms.getLeftArmEnd().clone();
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
l1 = this.waterArms.getRightArmEnd().clone();
2015-05-31 14:19:50 +00:00
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Vector dir = this.player.getLocation().getDirection().clone();
for (int i = 1; i <= this.activeLength; i++) {
final Location l2 = l1.clone().add(dir.normalize().multiply(i));
2015-05-31 14:19:50 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (!this.canPlaceBlock(l2.getBlock())) {
if (l2.getBlock().getType() != Material.BARRIER) {
this.grappled = true;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.reverting = true;
this.performAction(l2);
2015-05-31 14:19:50 +00:00
break;
}
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
final int j = (int) Math.ceil(8 / (Math.pow(i, 1 / 3)));
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.addToArm(l2.getBlock(), this.arm);
this.waterArms.addBlock(l2.getBlock(), GeneralMethods.getWaterData(j), 40);
2015-05-31 14:19:50 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (i == this.activeLength) {
this.end = l2.clone();
if (this.arm == Arm.LEFT) {
this.end = GeneralMethods.getRightSide(this.end, 1);
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.end = GeneralMethods.getLeftSide(this.end, 1);
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (!this.canPlaceBlock(this.end.getBlock())) {
if (this.end.getBlock().getType() != Material.BARRIER) {
this.grappled = true;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.reverting = true;
this.performAction(this.end);
break;
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.addToArm(this.end.getBlock(), this.arm);
this.waterArms.addBlock(this.end.getBlock(), GeneralMethods.getWaterData(5), 40);
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.performAction(this.end);
} else {
this.performAction(l2);
2015-05-31 14:19:50 +00:00
}
}
}
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
private void performAction(final Location location) {
final Location endOfArm = this.waterArms.getActiveArmEnd().clone();
switch (this.ability) {
2016-01-13 21:14:34 +00:00
case PULL:
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
for (final Entity entity : GeneralMethods.getEntitiesAroundPoint(location, 2)) {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (GeneralMethods.isRegionProtectedFromBuild(this, entity.getLocation()) || ((entity instanceof Player) && Commands.invincible.contains(((Player) entity).getName()))) {
continue;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Vector vector = endOfArm.toVector().subtract(entity.getLocation().toVector());
GeneralMethods.setVelocity(this, entity, vector.multiply(this.pullMultiplier));
2015-05-31 14:19:50 +00:00
}
break;
2016-01-13 21:14:34 +00:00
case PUNCH:
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
for (final Entity entity : GeneralMethods.getEntitiesAroundPoint(location, 2)) {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (GeneralMethods.isRegionProtectedFromBuild(this, entity.getLocation()) || ((entity instanceof Player) && Commands.invincible.contains(((Player) entity).getName()))) {
continue;
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Vector vector = entity.getLocation().toVector().subtract(endOfArm.toVector());
GeneralMethods.setVelocity(this, entity, vector.multiply(0.15));
if (entity instanceof LivingEntity) {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (entity.getEntityId() != this.player.getEntityId()) {
this.hasDamaged = true;
DamageHandler.damageEntity(entity, this.punchDamage, this);
}
2015-05-31 14:19:50 +00:00
}
}
break;
2016-01-13 21:14:34 +00:00
case GRAPPLE:
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.grapplePlayer(location);
break;
2016-01-13 21:14:34 +00:00
case GRAB:
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.grabbedEntity == null) {
for (final Entity entity : GeneralMethods.getEntitiesAroundPoint(location, 2)) {
if (entity instanceof LivingEntity && entity.getEntityId() != this.player.getEntityId() && !GRABBED_ENTITIES.containsKey(entity)) {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
if (GeneralMethods.isRegionProtectedFromBuild(this, entity.getLocation()) || ((entity instanceof Player) && Commands.invincible.contains(((Player) entity).getName()))) {
continue;
}
2016-01-13 21:14:34 +00:00
GRABBED_ENTITIES.put((LivingEntity) entity, this);
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.grabbedEntity = (LivingEntity) entity;
this.grabbed = true;
this.reverting = true;
this.waterArms.setActiveArmCooldown(true);
break;
}
2015-05-31 14:19:50 +00:00
}
}
break;
default:
break;
2015-05-31 14:19:50 +00:00
}
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
private void dragEntity(final Location location) {
if (this.grabbedEntity != null && this.grabbed) {
if (!this.waterArms.canDisplayActiveArm() || this.grabbedEntity.isDead()) {
this.grabbed = false;
GRABBED_ENTITIES.remove(this.grabbedEntity);
2015-05-31 14:19:50 +00:00
return;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.grabbedEntity instanceof Player && hasAbility((Player) this.grabbedEntity, WaterArmsWhip.class)) {
final WaterArmsWhip waw = getAbility((Player) this.grabbedEntity, WaterArmsWhip.class);
2016-02-07 16:24:54 +00:00
if (waw.getAbility().equals(Whip.GRAB)) {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.grabbed = false;
GRABBED_ENTITIES.remove(this.grabbedEntity);
2016-02-07 16:24:54 +00:00
return;
}
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Location newLocation = this.grabbedEntity.getLocation();
double distance = 0;
2017-01-16 06:48:20 +00:00
if (location.getWorld().equals(newLocation.getWorld())) {
distance = location.distance(newLocation);
}
2017-01-16 06:48:20 +00:00
2015-05-31 14:19:50 +00:00
double dx, dy, dz;
2016-01-13 21:14:34 +00:00
dx = location.getX() - newLocation.getX();
dy = location.getY() - newLocation.getY();
dz = location.getZ() - newLocation.getZ();
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Vector vector = new Vector(dx, dy, dz);
2017-01-16 06:48:20 +00:00
2016-01-13 21:14:34 +00:00
if (distance > 0.5) {
GeneralMethods.setVelocity(this, this.grabbedEntity, vector.normalize().multiply(.65));
2015-05-31 14:19:50 +00:00
} else {
GeneralMethods.setVelocity(this, this.grabbedEntity, new Vector(0, 0, 0));
2015-05-31 14:19:50 +00:00
}
2017-01-16 06:48:20 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.grabbedEntity.setFallDistance(0);
if (this.grabbedEntity instanceof Creature) {
((Creature) this.grabbedEntity).setTarget(null);
2015-05-31 14:19:50 +00:00
}
}
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
private void grapplePlayer(final Location location) {
if (this.reverting && this.grappled && this.player != null && this.end != null && this.ability.equals(Whip.GRAPPLE)) {
if (GeneralMethods.isRegionProtectedFromBuild(this, location) && this.grappleRespectRegions) {
return;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
final Vector vector = this.player.getLocation().toVector().subtract(location.toVector());
GeneralMethods.setVelocity(this, this.player, vector.multiply(-0.25));
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.player.setFallDistance(0);
2015-05-31 14:19:50 +00:00
}
}
public static void checkValidEntities() {
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
GRABBED_ENTITIES.entrySet().removeIf(entry -> entry.getValue().isRemoved() || entry.getValue().grabbedEntity == null);
2015-05-31 14:19:50 +00:00
}
2016-01-13 21:14:34 +00:00
@Override
public void remove() {
super.remove();
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (hasAbility(this.player, WaterArms.class)) {
if (this.arm.equals(Arm.LEFT)) {
this.waterArms.setLeftArmCooldown(false);
} else {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.setRightArmCooldown(false);
2015-05-31 14:19:50 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
if (this.hasDamaged) {
this.waterArms.setMaxPunches(this.waterArms.getMaxPunches() - 1);
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
this.waterArms.setMaxUses(this.waterArms.getMaxUses() - 1);
2015-05-31 14:19:50 +00:00
}
}
2016-01-13 21:14:34 +00:00
public static void progressAllCleanup() {
checkValidEntities();
2015-05-31 14:19:50 +00:00
}
2016-01-13 21:14:34 +00:00
public static void removeAllCleanup() {
GRABBED_ENTITIES.clear();
2015-05-31 14:19:50 +00:00
}
2016-01-13 21:14:34 +00:00
@Override
public String getName() {
return "WaterArms";
}
2016-01-13 21:14:34 +00:00
@Override
public Location getLocation() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.end;
}
2016-01-13 21:14:34 +00:00
@Override
public long getCooldown() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.usageCooldown;
}
2017-01-16 06:48:20 +00:00
2016-01-13 21:14:34 +00:00
@Override
public boolean isSneakAbility() {
return true;
}
2016-01-13 21:14:34 +00:00
@Override
public boolean isHarmlessAbility() {
return false;
}
2016-01-13 21:14:34 +00:00
public boolean isReverting() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.reverting;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setReverting(final boolean reverting) {
2016-01-13 21:14:34 +00:00
this.reverting = reverting;
}
2016-01-13 21:14:34 +00:00
public boolean isHasDamaged() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.hasDamaged;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setHasDamaged(final boolean hasDamaged) {
2016-01-13 21:14:34 +00:00
this.hasDamaged = hasDamaged;
}
2016-01-13 21:14:34 +00:00
public boolean isGrappled() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.grappled;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setGrappled(final boolean grappled) {
this.grappled = grappled;
}
2016-01-13 21:14:34 +00:00
public boolean isGrabbed() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.grabbed;
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setGrabbed(final boolean grabbed) {
this.grabbed = grabbed;
}
2016-01-13 21:14:34 +00:00
public boolean isGrappleRespectRegions() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.grappleRespectRegions;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setGrappleRespectRegions(final boolean grappleRespectRegions) {
2016-01-13 21:14:34 +00:00
this.grappleRespectRegions = grappleRespectRegions;
}
public boolean isUsageCooldownEnabled() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.usageCooldownEnabled;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setUsageCooldownEnabled(final boolean usageCooldownEnabled) {
2016-01-13 21:14:34 +00:00
this.usageCooldownEnabled = usageCooldownEnabled;
}
public int getWhipLength() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.whipLength;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWhipLength(final int whipLength) {
2016-01-13 21:14:34 +00:00
this.whipLength = whipLength;
}
public int getWhipLengthWeak() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.whipLengthWeak;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWhipLengthWeak(final int whipLengthWeak) {
2016-01-13 21:14:34 +00:00
this.whipLengthWeak = whipLengthWeak;
}
public int getWhipLengthNight() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.whipLengthNight;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWhipLengthNight(final int whipLengthNight) {
2016-01-13 21:14:34 +00:00
this.whipLengthNight = whipLengthNight;
}
public int getWhipLengthFullMoon() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.whipLengthFullMoon;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWhipLengthFullMoon(final int whipLengthFullMoon) {
2016-01-13 21:14:34 +00:00
this.whipLengthFullMoon = whipLengthFullMoon;
}
public int getInitLength() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.initLength;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setInitLength(final int initLength) {
2016-01-13 21:14:34 +00:00
this.initLength = initLength;
}
public int getPunchLength() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.punchLength;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPunchLength(final int punchLength) {
2016-01-13 21:14:34 +00:00
this.punchLength = punchLength;
}
public int getPunchLengthNight() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.punchLengthNight;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPunchLengthNight(final int punchLengthNight) {
2016-01-13 21:14:34 +00:00
this.punchLengthNight = punchLengthNight;
}
public int getPunchLengthFullMoon() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.punchLengthFullMoon;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPunchLengthFullMoon(final int punchLengthFullMoon) {
2016-01-13 21:14:34 +00:00
this.punchLengthFullMoon = punchLengthFullMoon;
}
public int getActiveLength() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.activeLength;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setActiveLength(final int activeLength) {
2016-01-13 21:14:34 +00:00
this.activeLength = activeLength;
}
public int getWhipSpeed() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.whipSpeed;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWhipSpeed(final int whipSpeed) {
2016-01-13 21:14:34 +00:00
this.whipSpeed = whipSpeed;
}
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
public long getGrabDuration() {
return this.grabDuration;
2016-01-13 21:14:34 +00:00
}
1.8.9 (#1038) For Spigot 1.14.4+ ## General Gameplay ### Additions - Added default Suffocate cooldown: 6.5 seconds - Added kinetic damage tracker to AirSweep - Added self and others push strength options for AirSuction - Added config option for multiple blocks to be changed per EarthTunnel run, allowing for much faster earth tunnels - Added config to ignore ores completely for EarthTunnel (good for mining) - Added AllowSnow config option for IceBlast - Added AvatarStateCooldown config options for IceBlast and IceBullet - Added config option for ice trapping abilities to not place blocks in players head or feet ### Fixes - Fixed preset command not allowing page numbers higher than 1 - Fixed Catapult and MetalClips not respecting /b invincible - Fixed Charged FireBlast radius and cooldown - Fixed Suffocate being usable through walls - Fixed FireBlast ignoring particle radius options - Fixed FireBurst fragmenting (not looking like a single burst) - Fixed AirSweep knockback to be more consistent (lessened friction) - Fixed AirBlast knockback using wrong push options - Fixed EarthSmash using nonexistent AvatarState options - Fixed error when switching worlds with PhaseChange active - Fixed server crash when hitting falling blocks with high-velocity abilities - Fixed server crash when using EarthGrab over the void - Fixed EarthTunnel not using configurable revert time - Fixed EarthPillars persisting when no entities were around ### Changes - Improved pathing for EarthBlast; works more consistently and can be used from ceilings - Improved aiming for EarthBlast and IceBlast - Changed AirSwipe and AirSweep to originate from the player’s main hand - Changed AirBlast knockback calculations; made the push options affect knockback more directly - Changed EarthTunnel to use tempblocks properly - Moved core combo instructions to config ### Removals - Removed being able to use Lightning while using FireJet - Removed jukeboxes being tempblocks - Removed bending.command.import permission from plugin.yml ## API ### Additions - Added GeneralMethods#getMainHandLocation(Player) - Added GeneralMethods#getClosestEntity(Location, double) - Added GeneralMethods#getClosestLivingEntity(Location, double) - Added "large" abilities collision with each other - Added specific timings for hot spots in the code that should help server owners diagnose lag from PK + player move event + physics event + bending manager - Created local folder repo and update pom for local jar files, this is necessary to use the maven shade plugin. - Added check for concrete powder in move earth - Added PlaceholderAPI support (hopefully more to come) + %projectkorra_slot<1-9>% ability on slot <1-9> + %projectkorra_element% element of the player + %projectkorra_elementcolor% color of the player’s element + %projectkorra_elements% elements the player has - Added "bending" WorldGuard flag. + Used for allowing or denying bending in worldguard regions. Will fall back to the old method of the build flag if the custom flag fails to register or isn't set ### Fixes - Fixed calls to CoreAbility#isEnabled() causing NullPointerExceptions when a CoreAbility is not enabled ### Changes - Changed CoreAbility#getAbility(..) Javadocs to state when it returns null - Formatted codebase - Changed GeneralMethods#getEntitiesAroundPoint() use spigot method for entities around point, should be more optimized - Optimizations to water and air spout to not continually set flying - Optimized revertchecker to not use block.getChunk; this will load the chunk on the server and instead use hashmap of coords - Optimized revertchecker to use paperlib to allow servers running paperspigot to load the chunk for a revert block async - Optimized tempblock revert to load chunk async before updating stateOptimize move event to ignore head movements without directional movement - Optimized physics event to check for air prior to checking for tempblocks - Optimized tempblock set/revert to not apply physics for blocks that don't emit light - Optimize isWater to check for actual water blocks first - Optimize PhaseChange list check, hot spot due to being called in physics event ### Removals - Removed BindChangeEvent; never called or used - Removed HorizontalVelocityTracker that has lasted over 30 seconds, also don't create a tracker for non-living entities
2019-12-10 07:03:28 +00:00
public void setGrabDuration(final long grabDuration) {
this.grabDuration = grabDuration;
2016-01-13 21:14:34 +00:00
}
public long getUsageCooldown() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.usageCooldown;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setUsageCooldown(final long usageCooldown) {
2016-01-13 21:14:34 +00:00
this.usageCooldown = usageCooldown;
}
public long getTime() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.time;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setTime(final long time) {
2016-01-13 21:14:34 +00:00
this.time = time;
}
public double getPullMultiplier() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.pullMultiplier;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPullMultiplier(final double pullMultiplier) {
2016-01-13 21:14:34 +00:00
this.pullMultiplier = pullMultiplier;
}
public double getPunchDamage() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.punchDamage;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPunchDamage(final double punchDamage) {
2016-01-13 21:14:34 +00:00
this.punchDamage = punchDamage;
}
public double getPlayerHealth() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.playerHealth;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setPlayerHealth(final double playerHealth) {
2016-01-13 21:14:34 +00:00
this.playerHealth = playerHealth;
}
public Arm getArm() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.arm;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setArm(final Arm arm) {
2016-01-13 21:14:34 +00:00
this.arm = arm;
}
public Whip getAbility() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.ability;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setAbility(final Whip ability) {
2016-01-13 21:14:34 +00:00
this.ability = ability;
}
public LivingEntity getGrabbedEntity() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.grabbedEntity;
}
2016-01-13 21:14:34 +00:00
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setGrabbedEntity(final LivingEntity grabbedEntity) {
2016-01-13 21:14:34 +00:00
this.grabbedEntity = grabbedEntity;
}
public Location getEnd() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.end;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setEnd(final Location end) {
2016-01-13 21:14:34 +00:00
this.end = end;
}
public WaterArms getWaterArms() {
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
return this.waterArms;
2016-01-13 21:14:34 +00:00
}
1.8.7 (#972) ## Additions * Added Statistics API * Added cooldown database * Added database cooldown to `AvatarState` * Added code to try a reconnect if the database connection is lost * Added a check to ensure an entity is an instance of `LivingEntity` before casting in `PKListener` * Added `FireManipulation` and Combo permissions to `plugin.yml` * Added an isBender method to `BendingPlayer` * Added a getter for the player object stored in `BendingPlayer` * Added `OFFHAND_TRIGGER` to `ClickType` * Added `ElementalAbility#getEarthbendableBlocks()`, returns String list from config * Added `GeneralMethods#getBlockFaceFromValue(int xyz, double value)` * Added `GeneralMethods#checkDiagonalWall(Location location, Vector direction)`, to determine if there is a diagonal wall * Added required variable to `ComboAbilityInfo`, Set of `CoreAbility` a `Player` must have active to use corresponding `ComboAbility` * Added `PassiveAbility#isProgressable()`, checks for if the ability uses its progress() method * Added overriding capabilities to `CollisionManager` * Added `TempArmorStand` utility class * Added new `EarthGrab` * Added new Earth combo, `EarthPillars`. * Added new `Flight` `MultiAbility` * Added a "Sticky" feature to `TremorSense` * Added “/b stats” command to display player statistics * Added `TimeUtil` to convert millisecond times into human readable increments * Added Dynamic Sourcing config option for Earth and Water * Added enable/disable option to `FireManipulation` * Added configurable duration values to `AirShield`, `AirSpout`, and `Tornado`, `WaterSpout`, `HealingWaters`, and `OctopusForm` * Added `IceBlast` and `IceSpike` blast to collisions * Added mechanics to `AirSuction` to close doors * Added configurable cooldown to “/b choose” located at “Properties.ChooseCooldown” * Added IRON_TRAPDOOR to `FerroControl` functionality * Added new config option that can prevent the Updater from connecting to the website when disabled in the config * Added more options to `AirSwipe` in `AvatarState` config portion ## Fixes * Fixed “Abilities.Chi.Smokescreen.Instructions” spelling error in `ConfigManager.java` * Fixed “Abilities.Water.Passive.HydroSink.Description” spelling error in `ConfigManager.java` * Fixed “Commands.PermaRemove.Description” spelling error in `ConfigManager.java` * Fixed “Extras.Fire.DayMessage” spelling error in `ConfigManager.java` * Fixed `QuickStrike` causing an endless chain of itself that never stops chiblocking and does no damage * Fixed `Paralyze` going indefinitely when it has a cooldown of 0 * Fixed damaging chi abilities not working in `WarriorStance` * Fixed `WarriorStance` NPE * Fixed `AcrobatStance` NPE when a user attempts to log out while the move is active * Fixed paralyzing abilities canceling the sneak event if the player was sneaking * Fixed `Passives` not being removed when a player has their bending changed * Fixed `Passives` being activated in Spectator mode * Fixed `DensityShift` softening your landing while you are an Airbender * Fixed the passives that weren't working. This includes `FerroControl`, `FastSwim`, `AirAgility` and `ChiAgility` * Fixed `MultiAbility` instances not being removed when a player has their bending changed * Fixed player binds not being filtered properly if they are using a `MultiAbility` * Fixed `FireWheel` going over air * Fixed `AvatarState` sound causing the ability to not work * Fixed bottlebending for `Surge`, `WaterManipulation`, and `OctopusForm` * Fixed `Bloodbending` ConcurrentModificationException when attempting to bend non-living entities * Fixed `PhaseChange` not working on blocks placed over already melted blocks * Fixed `IceBlast` going on cooldown after sneaking after selecting a block * Fixed `Surge` making `TempBlocks` revert * Fixed `WaterArms` grapple ability not working * Fixed `WaterArms` making `TempBlocks` revert * Fixed `WaterArmsSpear` checking if a block is placeable after placing the block * Fixed aiming bugs with `WaterArmsSpear` * Fixed `LavaFlow` causing drop duplications when cooled by another move * Fixed `EarthArmor` making people invincible * Fixed `EarthTunnel` so that it will work through tall grass and other transparent blocks * Fixed `EarthTunnel` not checking if a block it was trying to remove was in a protected region * Fixed `EarthSmash` values being incorrect * Fixed being able to remove the `EarthArmor` armor items from their slots * Fixed `EarthTunnel` not being able to be used on fallen blocks * Fixed `FireManipulation` being able to go through blocks * Fixed `FireSpin` and `FireKick` not expanding to full size when hitting an entity * Fixed `HeatControl` solidify not working on Minecraft version 1.9 * Fixed `Illumination` dropping a torch if water is placed on the user's feet via bucket * Fixed `FireCombos` not working with `AvatarState` * Fixed `FireWheel` not going down inclines * Fixed `FireWheel` insane wall climbing * Fixed `FireShield` duration * Fixed `FireWheel` not always damaging due to an invalid entity selection range * Fixed logic in `GeneralMethods#displayColoredParticle()` which caused random blips of other colors * FIxed `ClassCastException` in `PKListener.java` caused by `MetalClips` * Fixed typo in `GeneralMethods` which confused NETHER_WART_BLOCK with NETHER_STALK * Fixed permission based limit on how many Presets players can create. `bending.command.preset.create.#` * Fixed NPE in `WhoCommand` when performing offline lookups * Fixed various bad `Map#contains()` checks throughout the plugin * Fixed `BendingPlayer#addCooldown()` adding cooldowns even if their time is set to an invalid number. * Fixed the `PlayerCooldownChangeEvent` being fired on an invalid case * Fixed entity targeting methods in `GeneralMethods` registering dead players waiting to respawn as valid targets * Fixed NPE caused by checking for Lunar Eclipse, Solar Eclipse, Full Moon or Sozins Comet when not in the Overworld * Fixed `AirBlast`, `AirSweep`, `FireBlast` going through diagonal walls * Fixed known fly glitches * Fixed ability redirection breaking bottlebending for that player until server restart ## Misc. Changes * Changed instructions in “/bending help <ability>” to `ChatColor.WHITE` * Changed “/bending help earth” message to match others * Improved check for exhaustion in move event * Changed `CoreAbility#getDescription()` to pull combos from the lang config as well * Renamed `Hydrosink.java` to `HydroSink.java` * Reduced combo cleanup delay to one minute * Improved `IceSpike` blast animation * Improved code in `ProjectKorra.java` * Improved `FireShield` animation * Changed passive classes to be more functional than previously * Changed `BendingPlayer#canBendPassive()` and `BendingPlayer#canUsePassive()` to have `CoreAbility` param instead of `Element` * Changed `PassiveAbility#isInstantiable()` to be a check if the ability must be activated by the player, not if it uses the constructor * Improved `CoreAbility#progressAll()` * Improved `AirAgility` and `ChiAgility` * Changed death messages that say “experienced kinetic damage” to “experienced a fatal collision” * Changed `AirShield` to permit `AirSwipe` and `AirSweep` to pass through it * Changed `FireShield` to permit `FireBlastCharged` to pass through it * Changed `AirBlast`, `AirSuction`, `Blaze`, and `Combustion` so they do not collide with any other abilities * Changed `AirSwipe` and `AirSweep` so they can respectively pass through other instances of themselves. * Removed all active abilities for a given player when they quit the server * Changed old `EarthGrab` to `EarthDome` combo * Changed `AirSwipe` to cool lava temporarily instead of permanently * Changed “/pk” to return the “/pk help” pages * Changed `InvincibleCommand` to use `i` as an alias. “/pk i” * Changed `Preset` bind command to use branding * Changed `Preset` list command to use pages * Changed bending preview to persist while on an ability slot * Changed moves that cool lava (`AirBlast`, `AirBurst`, `AirSwipe`, `HeatControl`) so that they revert `LavaFlow` blocks * Changed `LavaFlow` click to only produce particles on blocks it has affected * Updated the `Updater` URL * Updated “/pk help <element>” to support Avatar as an argument * Updated “/pk help <element>” to prompt users to enter “/pk display <element>” instead of “/pk h <elementcombos>” * Changed `FireWheel` default range in `AvatarState` config portion * Changed `AirStream` default hold duration in `AvatarState` config portion * Changed `WaterArms` to not go through tempblocks * Changed `HealingWaters` previous duration value to “PotionDuration” in order to accurately represent what the setting changed * Increased the default number of creatable presets to 5 * Disabled FireManipulation by default ## Removals * Removed `ImportCommand` * Removed `AirSwipes` capability to break blocks * Removed metal ores (Iron, Gold, and Quartz) from the Earthbendable's list * Removed `AirPassive.java` and `WaterPassive.java`, combos are in their own respective files. * Removed redundant checks in `PKListener` * Removed redundant Earthbendable checks in `Extraction` * Removed redundant checks in `BendingPlayer` * Removed unnecessary code from `GeneralMethods#getTargetedEntity()` * Removed unnecessary SuppressWarnings for deprecation in various classes * Removed unnecessary `SpiritPlayer` checks in `BendingPlayer#canBind(CoreAbility ability)`
2018-08-07 05:46:09 +00:00
public void setWaterArms(final WaterArms waterArms) {
2016-01-13 21:14:34 +00:00
this.waterArms = waterArms;
}
public static HashMap<LivingEntity, WaterArmsWhip> getGrabbedEntities() {
return GRABBED_ENTITIES;
}
}