diff --git a/gradle.properties b/gradle.properties index 10ed26a57dd..423d5b2a107 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ groupid=ch.njol name=skript -version=2.5 +version=2.5.1 diff --git a/src/main/java/ch/njol/skript/conditions/CondIsFuel.java b/src/main/java/ch/njol/skript/conditions/CondIsFuel.java index 4a9f35102d7..fd921af54a4 100644 --- a/src/main/java/ch/njol/skript/conditions/CondIsFuel.java +++ b/src/main/java/ch/njol/skript/conditions/CondIsFuel.java @@ -37,7 +37,7 @@ "\t\tsend \"Please hold a valid fuel item in your hand\"", "\t\tcancel event" }) -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.11.2+") public class CondIsFuel extends PropertyCondition { diff --git a/src/main/java/ch/njol/skript/conditions/CondIsOccluding.java b/src/main/java/ch/njol/skript/conditions/CondIsOccluding.java index 544795c0de6..9e0b04bc975 100644 --- a/src/main/java/ch/njol/skript/conditions/CondIsOccluding.java +++ b/src/main/java/ch/njol/skript/conditions/CondIsOccluding.java @@ -28,7 +28,7 @@ @Name("Is Occluding") @Description("Checks whether an item is a block and completely blocks vision.") @Examples("player's tool is occluding") -@Since("INSERT VERSION") +@Since("2.5.1") public class CondIsOccluding extends PropertyCondition { static { diff --git a/src/main/java/ch/njol/skript/conditions/CondIsPassable.java b/src/main/java/ch/njol/skript/conditions/CondIsPassable.java index 390157222cc..2e6da4e7e26 100644 --- a/src/main/java/ch/njol/skript/conditions/CondIsPassable.java +++ b/src/main/java/ch/njol/skript/conditions/CondIsPassable.java @@ -35,7 +35,7 @@ "Blocks like tall grass, flowers, signs, etc. are passable, but open doors, fence gates, trap doors, etc. are not because they still have parts that can be collided with." }) @Examples("if player's targeted block is passable") -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.13.2+") public class CondIsPassable extends PropertyCondition { diff --git a/src/main/java/ch/njol/skript/conditions/CondIsUnbreakable.java b/src/main/java/ch/njol/skript/conditions/CondIsUnbreakable.java index a2af0a9c69c..0af210d9e3c 100644 --- a/src/main/java/ch/njol/skript/conditions/CondIsUnbreakable.java +++ b/src/main/java/ch/njol/skript/conditions/CondIsUnbreakable.java @@ -33,7 +33,7 @@ @Name("Is Unbreakable") @Description("Checks whether an item is unbreakable.") @Examples("if event-item is unbreakable") -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.11+") public class CondIsUnbreakable extends PropertyCondition { diff --git a/src/main/java/ch/njol/skript/conditions/CondIsVectorNormalized.java b/src/main/java/ch/njol/skript/conditions/CondIsVectorNormalized.java index 635d96cdb2d..c47f1289b3e 100644 --- a/src/main/java/ch/njol/skript/conditions/CondIsVectorNormalized.java +++ b/src/main/java/ch/njol/skript/conditions/CondIsVectorNormalized.java @@ -31,7 +31,7 @@ @Name("Is Normalized") @Description("Checks whether a vector is normalized i.e. length of 1") @Examples("vector of player's location is normalized") -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.13.2+") public class CondIsVectorNormalized extends PropertyCondition { diff --git a/src/main/java/ch/njol/skript/conditions/CondProjectileCanBounce.java b/src/main/java/ch/njol/skript/conditions/CondProjectileCanBounce.java index 1a83d5f83dd..08becff95c3 100644 --- a/src/main/java/ch/njol/skript/conditions/CondProjectileCanBounce.java +++ b/src/main/java/ch/njol/skript/conditions/CondProjectileCanBounce.java @@ -31,7 +31,7 @@ @Description("Whether or not a projectile can bounce.") @Examples({"on shoot:", "\tsend \"Boing!\" to all players if projectile can bounce"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class CondProjectileCanBounce extends PropertyCondition { static { diff --git a/src/main/java/ch/njol/skript/conditions/CondStartsEndsWith.java b/src/main/java/ch/njol/skript/conditions/CondStartsEndsWith.java index 15a306af32c..e1d7f6f3799 100644 --- a/src/main/java/ch/njol/skript/conditions/CondStartsEndsWith.java +++ b/src/main/java/ch/njol/skript/conditions/CondStartsEndsWith.java @@ -35,7 +35,7 @@ @Description("Checks if a text starts or ends with another.") @Examples({"if the argument starts with \"test\" or \"debug\":", "\tsend \"Stop!\""}) -@Since("2.2-dev36, INSERT VERSION (multiple strings support)") +@Since("2.2-dev36, 2.5.1 (multiple strings support)") public class CondStartsEndsWith extends Condition { static { diff --git a/src/main/java/ch/njol/skript/effects/EffForceAttack.java b/src/main/java/ch/njol/skript/effects/EffForceAttack.java index eb9390fb8e4..8e3308fcda1 100644 --- a/src/main/java/ch/njol/skript/effects/EffForceAttack.java +++ b/src/main/java/ch/njol/skript/effects/EffForceAttack.java @@ -38,7 +38,7 @@ @Description("Makes a living entity attack an entity with a melee attack.") @Examples({"spawn a wolf at player's location", "make last spawned wolf attack player"}) -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.15.2+") public class EffForceAttack extends Effect { diff --git a/src/main/java/ch/njol/skript/effects/EffOpenBook.java b/src/main/java/ch/njol/skript/effects/EffOpenBook.java index b120133001e..5b96114818b 100644 --- a/src/main/java/ch/njol/skript/effects/EffOpenBook.java +++ b/src/main/java/ch/njol/skript/effects/EffOpenBook.java @@ -40,7 +40,7 @@ @Description("Opens a written book to a player.") @Examples("open book player's tool to player") @RequiredPlugins("Minecraft 1.14.2+") -@Since("INSERT VERSION") +@Since("2.5.1") public class EffOpenBook extends Effect { static { diff --git a/src/main/java/ch/njol/skript/effects/EffSendBlockChange.java b/src/main/java/ch/njol/skript/effects/EffSendBlockChange.java index a0551769340..536da2274ce 100644 --- a/src/main/java/ch/njol/skript/effects/EffSendBlockChange.java +++ b/src/main/java/ch/njol/skript/effects/EffSendBlockChange.java @@ -41,7 +41,7 @@ @Description("Makes a player see a block as something it really isn't. BlockData support is only for MC 1.13+") @Examples({"make player see block at player as dirt", "make player see target block as campfire[facing=south]"}) -@Since("2.2-dev37c, INSERT VERSION (block data support)") +@Since("2.2-dev37c, 2.5.1 (block data support)") public class EffSendBlockChange extends Effect { private static final boolean BLOCK_DATA_SUPPORT = Skript.classExists("org.bukkit.block.data.BlockData"); diff --git a/src/main/java/ch/njol/skript/effects/EffSwingHand.java b/src/main/java/ch/njol/skript/effects/EffSwingHand.java index 91ac96373e1..a129254de9f 100644 --- a/src/main/java/ch/njol/skript/effects/EffSwingHand.java +++ b/src/main/java/ch/njol/skript/effects/EffSwingHand.java @@ -36,7 +36,7 @@ @Name("Swing Hand") @Description("Makes an entity swing their hand. This does nothing if the entity does not have an animation for swinging their hand.") @Examples("make player swing their main hand") -@Since("INSERT VERSION") +@Since("2.5.1") @RequiredPlugins("Minecraft 1.15.2+") public class EffSwingHand extends Effect { diff --git a/src/main/java/ch/njol/skript/events/EvtEntity.java b/src/main/java/ch/njol/skript/events/EvtEntity.java index d9f344ad40d..e10210dc3e9 100644 --- a/src/main/java/ch/njol/skript/events/EvtEntity.java +++ b/src/main/java/ch/njol/skript/events/EvtEntity.java @@ -54,7 +54,7 @@ public final class EvtEntity extends SkriptEvent { .examples("on spawn of a zombie:", "on spawn of an ender dragon:", " broadcast \"A dragon has been sighted in %world%!\"") - .since("1.0, INSERT VERSION (non-living entities)"); + .since("1.0, 2.5.1 (non-living entities)"); } @Nullable diff --git a/src/main/java/ch/njol/skript/events/SimpleEvents.java b/src/main/java/ch/njol/skript/events/SimpleEvents.java index 5cdaa2da714..e2afc2ed36d 100644 --- a/src/main/java/ch/njol/skript/events/SimpleEvents.java +++ b/src/main/java/ch/njol/skript/events/SimpleEvents.java @@ -573,11 +573,11 @@ public class SimpleEvents { Skript.registerEvent("Inventory Pickup", SimpleEvent.class, InventoryPickupItemEvent.class, "inventory pick[ ]up") .description("Called when an inventory (a hopper, a hopper minecart, etc.) picks up an item") .examples("on inventory pickup:") - .since("INSERT VERSION"); + .since("2.5.1"); Skript.registerEvent("Horse Jump", SimpleEvent.class, HorseJumpEvent.class, "horse jump") .description("Called when a horse jumps.") .examples("on horse jump:", "\tpush event-entity upwards at speed 2") - .since("INSERT VERSION"); + .since("2.5.1"); if(Skript.classExists("org.bukkit.event.block.BlockFertilizeEvent")) Skript.registerEvent("Block Fertilize", SimpleEvent.class, BlockFertilizeEvent.class, "[block] fertilize") .description("Called when a player fertilizes blocks.") @@ -589,7 +589,7 @@ public class SimpleEvents { .description("Called when a player swings his arm.") .examples("on arm swing:", "\tsend \"You swung your arm!\"") - .since("INSERT VERSION"); + .since("2.5.1"); if (Skript.classExists("org.bukkit.event.player.PlayerItemMendEvent")) { Skript.registerEvent("Item Mend", SimpleEvent.class, PlayerItemMendEvent.class, "item mend[ing]") .description("Called when a player has an item repaired via the Mending enchantment.") @@ -598,7 +598,7 @@ public class SimpleEvents { "\tchance of 50%:", "\t\tcancel the event", "\t\tsend \"Oops! Mending failed!\" to player") - .since("INSERT VERSION"); + .since("2.5.1"); } } } diff --git a/src/main/java/ch/njol/skript/expressions/ExprArrowKnockbackStrength.java b/src/main/java/ch/njol/skript/expressions/ExprArrowKnockbackStrength.java index a337bbefcfb..5f22eae306d 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprArrowKnockbackStrength.java +++ b/src/main/java/ch/njol/skript/expressions/ExprArrowKnockbackStrength.java @@ -39,7 +39,7 @@ @Examples({"on shoot:", "\tevent-projectile is an arrow", "\tset arrow knockback strength of event-projectile to 10"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprArrowKnockbackStrength extends SimplePropertyExpression { final static boolean abstractArrowExists = Skript.classExists("org.bukkit.entity.AbstractArrow"); diff --git a/src/main/java/ch/njol/skript/expressions/ExprArrowPierceLevel.java b/src/main/java/ch/njol/skript/expressions/ExprArrowPierceLevel.java index 5574dc463e7..6e635280e4b 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprArrowPierceLevel.java +++ b/src/main/java/ch/njol/skript/expressions/ExprArrowPierceLevel.java @@ -40,7 +40,7 @@ "\tevent-projectile is an arrow", "\tset arrow pierce level of event-projectile to 5"}) @RequiredPlugins("Minecraft 1.14+") -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprArrowPierceLevel extends SimplePropertyExpression { private final static boolean CAN_USE_PIERCE = Skript.methodExists(Arrow.class, "getPierceLevel"); diff --git a/src/main/java/ch/njol/skript/expressions/ExprBlocks.java b/src/main/java/ch/njol/skript/expressions/ExprBlocks.java index 176d97c2c60..5b3915a55ab 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprBlocks.java +++ b/src/main/java/ch/njol/skript/expressions/ExprBlocks.java @@ -55,7 +55,7 @@ "set the blocks below the player, the victim and the targeted block to air", "set all blocks within {loc1} and {loc2} to stone", "set all blocks within chunk at player to air"}) -@Since("1.0, INSERT VERSION (within/cuboid/chunk)") +@Since("1.0, 2.5.1 (within/cuboid/chunk)") public class ExprBlocks extends SimpleExpression { static { Skript.registerExpression(ExprBlocks.class, Block.class, ExpressionType.COMBINED, diff --git a/src/main/java/ch/njol/skript/expressions/ExprDropsOfBlock.java b/src/main/java/ch/njol/skript/expressions/ExprDropsOfBlock.java index aaa6d488806..2910ada2591 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprDropsOfBlock.java +++ b/src/main/java/ch/njol/skript/expressions/ExprDropsOfBlock.java @@ -46,7 +46,7 @@ @RequiredPlugins("Minecraft 1.15+ ('as %entity%')") @Examples({"on break of block:", "\tgive drops of block using player's tool to player"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprDropsOfBlock extends SimpleExpression { private final static boolean DROPS_OF_ENTITY_EXISTS = Skript.methodExists(Block.class, "getDrops", ItemStack.class, Entity.class); diff --git a/src/main/java/ch/njol/skript/expressions/ExprHealAmount.java b/src/main/java/ch/njol/skript/expressions/ExprHealAmount.java index 6b27fb1afeb..2003a7f93e0 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprHealAmount.java +++ b/src/main/java/ch/njol/skript/expressions/ExprHealAmount.java @@ -43,7 +43,7 @@ @Description("The amount of health healed in a healing event.") @Examples({"increase heal amount by 2", "remove 0.5 from heal amount"}) -@Since("INSERT VERSION") +@Since("2.5.1") @Events("heal") public class ExprHealAmount extends SimpleExpression { diff --git a/src/main/java/ch/njol/skript/expressions/ExprLastAttacker.java b/src/main/java/ch/njol/skript/expressions/ExprLastAttacker.java index e95af077428..b1f8b3ab237 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprLastAttacker.java +++ b/src/main/java/ch/njol/skript/expressions/ExprLastAttacker.java @@ -34,7 +34,7 @@ @Name("Last Attacker") @Description("The last block or entity that attacked an entity.") @Examples({"send \"%last attacker of event-entity%\""}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprLastAttacker extends SimplePropertyExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprLastDamage.java b/src/main/java/ch/njol/skript/expressions/ExprLastDamage.java index 6b711234acd..0b62cd60a9d 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprLastDamage.java +++ b/src/main/java/ch/njol/skript/expressions/ExprLastDamage.java @@ -37,7 +37,7 @@ @Name("Last Damage") @Description("The last damage that was done to an entity. Note that changing it doesn't deal more/less damage.") @Examples({"set last damage of event-entity to 2"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprLastDamage extends SimplePropertyExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprMaxMinecartSpeed.java b/src/main/java/ch/njol/skript/expressions/ExprMaxMinecartSpeed.java index a8157391994..45670dca927 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprMaxMinecartSpeed.java +++ b/src/main/java/ch/njol/skript/expressions/ExprMaxMinecartSpeed.java @@ -36,7 +36,7 @@ @Description("The maximum speed of a minecart.") @Examples({"on right click on minecart:", "\tset max minecart speed of event-entity to 1"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprMaxMinecartSpeed extends SimplePropertyExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprMendingRepairAmount.java b/src/main/java/ch/njol/skript/expressions/ExprMendingRepairAmount.java index fa0f64bd0df..9aec1087229 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprMendingRepairAmount.java +++ b/src/main/java/ch/njol/skript/expressions/ExprMendingRepairAmount.java @@ -43,7 +43,7 @@ " Modifying the repair amount will affect how much experience is given to the player after mending."}) @Examples({"on item mend:", "\tset the mending repair amount to 100"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprMendingRepairAmount extends SimpleExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprMinecartDerailedFlyingVelocity.java b/src/main/java/ch/njol/skript/expressions/ExprMinecartDerailedFlyingVelocity.java index 092d8cd709f..30ae0363f23 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprMinecartDerailedFlyingVelocity.java +++ b/src/main/java/ch/njol/skript/expressions/ExprMinecartDerailedFlyingVelocity.java @@ -40,7 +40,7 @@ @Description("The velocity of a minecart as soon as it has been derailed or as soon as it starts flying.") @Examples({"on right click on minecart:", "\tset derailed velocity of event-entity to vector 2, 10, 2"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprMinecartDerailedFlyingVelocity extends SimplePropertyExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprNumbers.java b/src/main/java/ch/njol/skript/expressions/ExprNumbers.java index c84d448af42..bae9048c041 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprNumbers.java +++ b/src/main/java/ch/njol/skript/expressions/ExprNumbers.java @@ -50,7 +50,7 @@ @Examples({"loop numbers from 2.5 to 5.5: # loops 2.5, 3.5, 4.5, 5.5", "loop integers from 2.9 to 5.1: # same as '3 to 5', i.e. loops 3, 4, 5", "loop decimals from 3.94 to 4: # loops 3.94, 3.95, 3.96, 3.97, 3.98, 3.99, 4"}) -@Since("1.4.6 (integers & numbers), INSERT VERSION (decimals)") +@Since("1.4.6 (integers & numbers), 2.5.1 (decimals)") public class ExprNumbers extends SimpleExpression { static { Skript.registerExpression(ExprNumbers.class, Number.class, ExpressionType.COMBINED, diff --git a/src/main/java/ch/njol/skript/expressions/ExprProjectileBounceState.java b/src/main/java/ch/njol/skript/expressions/ExprProjectileBounceState.java index b9561c22fb2..dadc0eea78b 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprProjectileBounceState.java +++ b/src/main/java/ch/njol/skript/expressions/ExprProjectileBounceState.java @@ -35,7 +35,7 @@ @Description("A projectile's bounce state.") @Examples({"on projectile hit:", "\tset projectile bounce mode of event-projectile to true"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprProjectileBounceState extends SimplePropertyExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprProjectileCriticalState.java b/src/main/java/ch/njol/skript/expressions/ExprProjectileCriticalState.java index d9c96eebb3b..76760fd6b3b 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprProjectileCriticalState.java +++ b/src/main/java/ch/njol/skript/expressions/ExprProjectileCriticalState.java @@ -39,7 +39,7 @@ @Examples({"on shoot:", "\tevent-projectile is an arrow", "\tset projectile critical mode of event-projectile to true"}) -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprProjectileCriticalState extends SimplePropertyExpression { private static final boolean abstractArrowExists = Skript.classExists("org.bukkit.entity.AbstractArrow"); diff --git a/src/main/java/ch/njol/skript/expressions/ExprRandomUUID.java b/src/main/java/ch/njol/skript/expressions/ExprRandomUUID.java index 5439ad92e6a..dd16396eb6a 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprRandomUUID.java +++ b/src/main/java/ch/njol/skript/expressions/ExprRandomUUID.java @@ -37,7 +37,7 @@ @Name("Random UUID") @Description("Returns a random UUID.") @Examples("set {_uuid} to random uuid") -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprRandomUUID extends SimpleExpression { static { diff --git a/src/main/java/ch/njol/skript/expressions/ExprSeaLevel.java b/src/main/java/ch/njol/skript/expressions/ExprSeaLevel.java index cb0eb97fc79..0a0e10485ae 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprSeaLevel.java +++ b/src/main/java/ch/njol/skript/expressions/ExprSeaLevel.java @@ -30,7 +30,7 @@ @Name("Sea Level") @Description("Gets the sea level of a world.") @Examples("send \"The sea level in your world is %sea level in player's world%\"") -@Since("INSERT VERSION") +@Since("2.5.1") public class ExprSeaLevel extends SimplePropertyExpression { static {