Skip to content

Commit

Permalink
Prepare for release of 2.5-alpha6 (#3183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Jul 21, 2020
1 parent adaad65 commit 543517e
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 26 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-alpha5
version=2.5-alpha6
8 changes: 4 additions & 4 deletions src/main/java/ch/njol/skript/classes/data/BukkitClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ public String getVariableNamePattern() {
.name("Gamerule")
.description("A gamerule")
.usage(Arrays.stream(GameRule.values()).map(GameRule::getName).collect(Collectors.joining(", ")))
.since("INSERT VERSION")
.since("2.5")
.requiredPlugins("Minecraft 1.13 or newer")
.parser(new Parser<GameRule>() {
@Override
Expand Down Expand Up @@ -1774,7 +1774,7 @@ public String getVariableNamePattern() {
)
.examples("set persistent data value \"epic\" of player to true")
.requiredPlugins("1.14 or newer")
.since("INSERT VERSION"));
.since("2.5"));
}

if (Skript.classExists("org.bukkit.enchantments.EnchantmentOffer")) {
Expand All @@ -1785,7 +1785,7 @@ public String getVariableNamePattern() {
.examples("on enchant prepare:",
"\tset enchant offer 1 to sharpness 1",
"\tset the cost of enchant offer 1 to 10 levels")
.since("INSERT VERSION")
.since("2.5")
.parser(new Parser<EnchantmentOffer>() {
@Override
public boolean canParse(ParseContext context) {
Expand Down Expand Up @@ -1816,7 +1816,7 @@ public String getVariableNamePattern() {
+ "See <a href='https://minecraft.gamepedia.com/Attribute#Attributes'>attribute types</a> for more info.")
.defaultExpression(new EventValueExpression<>(Attribute.class))
.usage(attributes.getAllNames())
.since("INSERT VERSION")
.since("2.5")
.parser(new Parser<Attribute>() {
@Override
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public String getVariableNamePattern() {
.description("A wrapper for the value of a gamerule for a world.")
.usage("")
.examples("")
.since("INSERT VERSION")
.since("2.5")
.serializer(new YggdrasilSerializer<GameruleValue>())
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@Examples({"player holds relational variable {isAdmin}",
"player holds relational variable {oldNames::*}"})
@RequiredPlugins("1.14 or newer")
@Since("INSERT VERSION")
@Since("2.5")
public class CondHasRelationalVariable extends Condition {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@Examples({"on explosion prime:",
"\tif the explosion is fiery:",
"\t\tbroadcast \"A fiery explosive has been ignited!\""})
@Since("INSERT VERSION")
@Since("2.5")
public class CondIncendiary extends Condition {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffIncendiary.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@Description("Sets if an entity's explosion will leave behind fire. This effect is also usable in an explosion prime event.")
@Examples({"on explosion prime:",
"\tmake the explosion fiery"})
@Since("INSERT VERSION")
@Since("2.5")
public class EffIncendiary extends Effect {

static {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,13 @@ public class SimpleEvents {
.examples("on enchant prepare:",
"\tset enchant offer 1 to sharpness 1",
"\tset the cost of enchant offer 1 to 10 levels")
.since("INSERT VERSION");
.since("2.5");
Skript.registerEvent("Enchant", SimpleEvent.class, EnchantItemEvent.class, "[item] enchant")
.description("Called when a player successfully enchants an item.",
" To get the enchanted item, see the <a href='expressions.html#ExprEnchantEventsEnchantItem'>enchant item expression</a>")
.examples("on enchant:",
"\tif the clicked button is enchantment option 1:",
"\t\tset the applied enchantments to sharpness 10 and unbreaking 10")
.since("INSERT VERSION");
.since("2.5");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@Examples({"on enchant",
"\tset the applied enchantments to sharpness 10 and fire aspect 5"})
@Events("enchant")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprAppliedEnchantments extends SimpleExpression<EnchantmentType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"on enchant prepare:",
"\tset the enchant item to a wooden sword"})
@Events({"enchant prepare", "enchant"})
@Since("INSERT VERSION")
@Since("2.5")
public class ExprEnchantItem extends SimpleExpression<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Examples({"on enchant:",
"\tsend \"Cost: %the displayed cost of enchanting%\" to player"})
@Events("enchant")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprEnchantingExpCost extends SimpleExpression<Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@Examples({"on enchant:",
"\tsend \"There are %enchantment bonus% bookshelves surrounding this enchantment table!\" to player"})
@Events("enchant prepare")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprEnchantmentBonus extends SimpleExpression<Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
" If the cost is changed, it will always be at least 1."})
@Examples({"on enchant prepare:",
"\tset the cost of enchantment 1 to 50"})
@Since("INSERT VERSION")
@Since("2.5")
@Events("enchant prepare")
@RequiredPlugins("1.9 or 1.10")
@SuppressWarnings("deprecation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
@Description("The enchantment offer in enchant prepare events.")
@Examples({"on enchant prepare:",
"\tsend \"Your enchantment offers are: %the enchantment offers%\" to player"})
@Since("INSERT VERSION")
@Since("2.5")
@Events("enchant prepare")
@RequiredPlugins("1.11 or newer")
public class ExprEnchantmentOffer extends SimpleExpression<EnchantmentOffer> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
" This changes how many levels are required to enchant, but does not change the number of levels removed.",
" To change the number of levels removed, use the enchant event."})
@Examples("set cost of enchantment offer 1 to 50")
@Since("INSERT VERSION")
@Since("2.5")
@RequiredPlugins("1.11 or newer")
public class ExprEnchantmentOfferCost extends SimplePropertyExpression<EnchantmentOffer, Number>{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
@Examples({"on damage of player:",
" send \"You are wounded!\"",
" set victim's attack speed attribute to 2"})
@Since("INSERT VERSION")
@Since("2.5")
public class ExprEntityAttribute extends PropertyExpression<Entity, Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Examples({"on explode:",
"set the explosion's block yield to 10%"})
@Events("explosion")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprExplosionBlockYield extends SimpleExpression<Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Examples({"on explosion prime:",
"\tset the yield of the explosion to 10"})
@Events("explosion prime")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprExplosionYield extends SimpleExpression<Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@Examples({"on spawn of a creeper:",
"\tset the explosive yield of the event-entity to 10"})
@RequiredPlugins("Minecraft 1.12 or newer for creepers")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprExplosiveYield extends SimplePropertyExpression<Entity, Number> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@Examples({"set all entities' fall distance to 10",
"on damage:",
"\tsend \"%victim's fall distance%\" to victim"})
@Since("INSERT VERSION")
@Since("2.5")
public class ExprFallDistance extends SimplePropertyExpression<Entity, Number> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprGameRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@Name("Gamerule Value")
@Description("The gamerule value of a world.")
@Examples({"set the gamerule commandBlockOutput of world \"world\" to false"})
@Since("INSERT VERSION")
@Since("2.5")
@RequiredPlugins("Minecraft 1.13+")
public class ExprGameRule extends SimpleExpression<GameruleValue> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
@Examples({"set {isAdmin} of player to true",
"set {oldNames::*} of player to \"Noob_Sl4yer\" and \"Skr1pt_M4st3r\""})
@RequiredPlugins("1.14 or newer")
@Since("INSERT VERSION")
@Since("2.5")
@SuppressWarnings({"null", "unchecked"})
public class ExprRelationalVariable<T> extends SimpleExpression<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
@Name("Time Since")
@Description("The time that has passed since a date. If the given date is in the future, a value will not be returned.")
@Examples("send \"%time since 5 minecraft days ago% has passed since 5 minecraft days ago!\" to player")
@Since("INSERT VERSION")
@Since("2.5")
public class ExprTimeSince extends SimplePropertyExpression<Date, Timespan> {

static {
Expand Down

0 comments on commit 543517e

Please sign in to comment.