Skip to content

Commit

Permalink
Prepare For Release (2.9.0-pre1)
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus committed Jul 2, 2024
1 parent 724f2b5 commit 1ac7681
Show file tree
Hide file tree
Showing 37 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.parallel=true

groupid=ch.njol
name=skript
version=2.8.7
version=2.9.0-pre1
jarName=Skript.jar
testEnv=java21/paper-1.21.0
testEnvJavaVersion=21
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public OfflinePlayer[] executeSimple(Object[][] params) {
"set {_p} to offlineplayer(\"069a79f4-44e9-4726-a5be-fca90e38aaf5\")",
"set {_p} to offlineplayer(\"Notch\", false)"
)
.since("2.8.0, INSERT VERSION (prevent lookups)");
.since("2.8.0, 2.9.0 (prevent lookups)");
} // end offline player function

Functions.registerFunction(new SimpleJavaFunction<Boolean>("isNaN", numberParam, DefaultClasses.BOOLEAN, true) {
Expand All @@ -632,7 +632,7 @@ public String[] executeSimple(Object[][] params) {
.examples(
"concat(\"hello \", \"there\") # hello there",
"concat(\"foo \", 100, \" bar\") # foo 100 bar"
).since("INSERT VERSION");
).since("2.9.0");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"if {_items::*} aren't resistant to fire:"
})
@RequiredPlugins("Spigot 1.20.5+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondIsFireResistant extends PropertyCondition<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"clear entity within {_entity}"
})
@RequiredPlugins("Paper")
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondIsPathfinding extends Condition {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
})
@Examples("target block is resonating")
@RequiredPlugins("Spigot 1.19.4+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondIsResonating extends PropertyCondition<Block> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondIsRinging.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@Description("Checks to see if a bell is currently ringing. A bell typically rings for 50 game ticks.")
@Examples("target block is ringing")
@RequiredPlugins("Spigot 1.19.4+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondIsRinging extends PropertyCondition<Block> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"if tool of {_p} is breakable:",
"\tsend \"Your tool is breakable!\" to {_p}"
})
@Since("2.5.1, INSERT VERSION (breakable)")
@Since("2.5.1, 2.9.0 (breakable)")
public class CondIsUnbreakable extends PropertyCondition<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"on load:",
"\tif the script is using \"example feature\":",
"\t\tbroadcast \"You're using an experimental feature!\""})
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondIsUsingFeature extends Condition {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"if the server is whitelisted:",
"if the server whitelist is enforced:"
})
@Since("2.5.2, INSERT VERSION (enforce, offline players)")
@Since("2.5.2, 2.9.0 (enforce, offline players)")
@RequiredPlugins("MC 1.17+ (enforce)")
public class CondIsWhitelisted extends Condition {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondTooltip.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"if additional tooltip of {_item} is hidden:"
})
@RequiredPlugins("Spigot 1.20.5+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class CondTooltip extends Condition {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffBan.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"IP-ban the player because \"he is an idiot\"",
"ban player due to \"inappropriate language\" for 2 days",
"ban and kick player due to \"inappropriate language\" for 2 days"})
@Since("1.4, 2.1.1 (ban reason), 2.5 (timespan), INSERT VERSION (kick)")
@Since("1.4, 2.1.1 (ban reason), 2.5 (timespan), 2.9.0 (kick)")
public class EffBan extends Effect {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"enforce the whitelist",
"unenforce the whitelist"
})
@Since("INSERT VERSION")
@Since("2.9.0")
@RequiredPlugins("MC 1.17+")
public class EffEnforceWhitelist extends Effect {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffFireResistant.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"make {_items::*} not resistant to fire"
})
@RequiredPlugins("Spigot 1.20.5+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class EffFireResistant extends Effect {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"on command:",
"\tlog \"%player% just executed %full command%!\" to file \"server/commands.log\" with a severity of warning"
})
@Since("2.0, INSERT VERSION (severities)")
@Since("2.0, 2.9.0 (severities)")
public class EffLog extends Effect {
static {
Skript.registerEffect(EffLog.class, "log %strings% [(to|in) [file[s]] %-strings%] [with [the|a] severity [of] (1:warning|2:severe)]");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffPlaySound.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"play sound \"BLOCK_AMETHYST_BLOCK_RESONATE\" with seed 1 on target entity for the player #1.20.1+"
})
@RequiredPlugins("Paper 1.19.4+ or Adventure API 4.12.0+ (sound seed)")
@Since("2.2-dev28, 2.4 (sound categories), INSERT VERSION (sound seed & entity emitter)")
@Since("2.2-dev28, 2.4 (sound categories), 2.9.0 (sound seed & entity emitter)")
public class EffPlaySound extends Effect {

private static final boolean ADVENTURE_API = Skript.classExists("net.kyori.adventure.sound.Sound$Builder");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffRing.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
})
@Examples({"make player ring target-block"})
@RequiredPlugins("Spigot 1.19.4+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class EffRing extends Effect {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"sort {_words::*} by length of input # shortest to longest",
"sort {_words::*} based on {tastiness::%input%} # sort based on custom value"
})
@Since("INSERT VERSION")
@Since("2.9.0")
@Keywords("input")
public class EffSort extends Effect implements InputSource {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffTooltip.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"hide {_item}'s additional tool tip"
})
@RequiredPlugins("Spigot 1.20.5+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class EffTooltip extends Effect {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtHealing.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class EvtHealing extends SkriptEvent {
"\theal reason is healing potion",
"\tcancel event"
)
.since("1.0, INSERT VERSION (by reason)");
.since("1.0, 2.9.0 (by reason)");
}

@Nullable
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtTeleport.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class EvtTeleport extends SkriptEvent {
"on player teleport:",
"on creeper teleport:"
)
.since("1.0, INSERT VERSION (entity teleport)");
.since("1.0, 2.9.0 (entity teleport)");
}

@Nullable
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public class SimpleEvents {
"on bell ring:",
"\tsend \"<gold>Ding-dong!<reset>\" to all players in radius 10 of event-block"
)
.since("INSERT VERSION")
.since("2.9.0")
.requiredPlugins("Spigot 1.19.4+ or Paper 1.16.5+ (no event-direction)");
}
}
Expand All @@ -785,7 +785,7 @@ public class SimpleEvents {
"on bell resonate:",
"\tsend \"<red>Raiders are nearby!\" to all players in radius 32 around event-block"
)
.since("INSERT VERSION")
.since("2.9.0")
.requiredPlugins("Spigot 1.19.4+");
}

Expand All @@ -801,7 +801,7 @@ public class SimpleEvents {
"\tif player has permission \"safeFrom.enderman\":",
"\t\tcancel event"
)
.since("INSERT VERSION")
.since("2.9.0")
.requiredPlugins("Paper");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"\t\tadd character from codepoint loop-value to {_chars::*}",
"\treturn {_chars::*}",
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprCharacterFromCodepoint extends SimplePropertyExpression<Integer, String> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"\t\tset {_previous-codepoint} to {_codepoint}",
"\treturn true"
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprCodepoint extends SimplePropertyExpression<String, Integer> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"teleport the player to the block above the highest block at the player",
"set the highest solid block at the player's location to the lowest solid block at the player's location"
})
@Since("2.2-dev34, INSERT VERSION (lowest solid block, 'non-air' option removed, additional syntax option)")
@Since("2.2-dev34, 2.9.0 (lowest solid block, 'non-air' option removed, additional syntax option)")
public class ExprLowestHighestSolidBlock extends SimplePropertyExpression<Location, Block> {

private static final boolean HAS_MIN_HEIGHT =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"delete max durability of player's tool"
})
@RequiredPlugins("Minecraft 1.20.5+ (custom amount)")
@Since("2.5, INSERT VERSION (change)")
@Since("2.5, 2.9.0 (change)")
public class ExprMaxDurability extends SimplePropertyExpression<Object, Integer> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"",
"on death:",
"\tset the death message to \"%player% died!\""})
@Since("1.4.6 (chat message), 1.4.9 (join & quit messages), 2.0 (death message), INSERT VERSION (clear message)")
@Since("1.4.6 (chat message), 1.4.9 (join & quit messages), 2.0 (death message), 2.9.0 (clear message)")
@Events({"chat", "join", "quit", "death"})
public class ExprMessage extends SimpleExpression<String> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
})
@Examples("broadcast \"The bell has been resonating for %resonating time of target block%\"")
@RequiredPlugins("Spigot 1.19.4+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprResonatingTime extends SimplePropertyExpression<Block, Timespan> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
})
@Examples("broadcast \"The bell has been ringing for %ringing time of target block%\"")
@RequiredPlugins("Spigot 1.19.4+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprRingingTime extends SimplePropertyExpression<Block, Timespan> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"set {_owner} to the skull owner of event-block",
"set skull owner of {_block} to \"Njol\" parsed as offlineplayer"
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprSkullOwner extends SimplePropertyExpression<Block, OfflinePlayer> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"set {_block} to actual target block of player",
"break actual target block of player"
})
@Since("1.0, INSERT VERSION (actual/exact)")
@Since("1.0, 2.9.0 (actual/exact)")
public class ExprTargetedBlock extends PropertyExpression<LivingEntity, Block> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"set {_t} to difference between now and {Payouts::players::%uuid of player%::last-date}",
"send \"It has been %days of {_t}% day(s) since last payout.\""
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprTimespanDetails extends SimplePropertyExpression<Timespan, Long> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"set {_item} to unbreakable iron sword",
"give breakable {_weapon} to all players"
})
@Since("2.2-dev13b, INSERT VERSION (breakable)")
@Since("2.2-dev13b, 2.9.0 (breakable)")
public class ExprUnbreakable extends SimplePropertyExpression<ItemType, ItemType> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprWhether.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"set {fly} to whether player can fly",
"broadcast \"Flying: %whether player is flying%\""
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprWhether extends SimpleExpression<Boolean> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"add all players to whitelist",
"reset the whitelist"
})
@Since("2.5.2, INSERT VERSION (delete)")
@Since("2.5.2, 2.9.0 (delete)")
public class ExprWhitelist extends SimpleExpression<OfflinePlayer> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"drop fire resistant stone at player"
})
@RequiredPlugins("Spigot 1.20.5+")
@Since("INSERT VERSION")
@Since("2.9.0")
public class ExprWithFireResistance extends PropertyExpression<ItemType, ItemType> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprYawPitch.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"set pitch of player to -90 # Makes the player look upwards, Paper 1.19+ only",
"add 180 to yaw of target of player # Makes the target look behind themselves"
})
@Since("2.0, 2.2-dev28 (vector yaw/pitch), INSERT VERSION (entity changers)")
@Since("2.0, 2.2-dev28 (vector yaw/pitch), 2.9.0 (entity changers)")
@RequiredPlugins("Paper 1.19+ (player changers)")
public class ExprYawPitch extends SimplePropertyExpression<Object, Float> {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/structures/StructUsing.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"using 1.21",
"using my-cool-addon-feature"
})
@Since("INSERT VERSION")
@Since("2.9.0")
public class StructUsing extends Structure {

public static final Priority PRIORITY = new Priority(15);
Expand Down

0 comments on commit 1ac7681

Please sign in to comment.