Skip to content

Commit

Permalink
Prepare for release of 2.5.1 (#3488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Oct 22, 2020
1 parent fbe0de2 commit 4d704c8
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
groupid=ch.njol
name=skript
version=2.5
version=2.5.1
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondIsFuel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemType> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Block> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemType> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vector> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projectile> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffForceAttack.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffOpenBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffSwingHand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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.")
Expand All @@ -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");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projectile, Number> {

final static boolean abstractArrowExists = Skript.classExists("org.bukkit.entity.AbstractArrow");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projectile, Number> {

private final static boolean CAN_USE_PIERCE = Skript.methodExists(Arrow.class, "getPierceLevel");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Block> {
static {
Skript.registerExpression(ExprBlocks.class, Block.class, ExpressionType.COMBINED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemType> {

private final static boolean DROPS_OF_ENTITY_EXISTS = Skript.methodExists(Block.class, "getDrops", ItemStack.class, Entity.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Number> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity, Object> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<LivingEntity, Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity, Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entity, Vector> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprNumbers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Number> {
static {
Skript.registerExpression(ExprNumbers.class, Number.class, ExpressionType.COMBINED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projectile, Boolean> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Projectile, Boolean> {

private static final boolean abstractArrowExists = Skript.classExists("org.bukkit.entity.AbstractArrow");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprSeaLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<World, Number> {

static {
Expand Down

0 comments on commit 4d704c8

Please sign in to comment.