Skip to content

Commit

Permalink
commit for nightly docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sovdeeth committed Nov 1, 2024
1 parent 0410f72 commit d89d654
Show file tree
Hide file tree
Showing 87 changed files with 124 additions and 103 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.9.4
version=2.10.0-beta1
jarName=Skript.jar
testEnv=java21/paper-1.21.3
testEnvJavaVersion=21
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/classes/data/BukkitClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ public String toVariableNameString(EnchantmentOffer eo) {
.user("(entity )?potion ?effect ?cause")
.name("Entity Potion Cause")
.description("Represents the cause of the action of a potion effect on an entity, e.g. arrow, command")
.since("INSERT VERSION"));
.since("2.10.0"));

ClassInfo<?> wolfVariantClassInfo;
if (Skript.classExists("org.bukkit.entity.Wolf$Variant") && BukkitUtils.registryExists("WOLF_VARIANT")) {
Expand All @@ -1558,7 +1558,7 @@ public String toVariableNameString(EnchantmentOffer eo) {
.user("(experience|[e]xp) cooldown change (reason|cause)s?")
.name("Experience Cooldown Change Reason")
.description("Represents a change reason of an <a href='events.html#experience cooldown change event'>experience cooldown change event</a>.")
.since("INSERT VERSION"));
.since("2.10.0"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public ColorRGB[] executeSimple(Object[][] params) {
"dye player's leggings rgb(120, 30, 45)",
"set the colour of a text display to rgb(10, 50, 100, 50)"
)
.since("2.5, INSERT VERSION (alpha)");
.since("2.5, 2.10.0 (alpha)");

Functions.registerFunction(new SimpleJavaFunction<Player>("player", new Parameter[] {
new Parameter<>("nameOrUUID", DefaultClasses.STRING, true, null),
Expand Down Expand Up @@ -667,7 +667,7 @@ public Quaternionf[] executeSimple(Object[][] params) {
})
.description("Returns a quaternion from the given W, X, Y and Z parameters. ")
.examples("quaternion(1, 5.6, 45.21, 10)")
.since("INSERT VERSION");
.since("2.10.0");
}

if (Skript.classExists("org.joml.AxisAngle4f")) {
Expand All @@ -687,7 +687,7 @@ public Quaternionf[] executeSimple(Object[][] params) {
})
.description("Returns a quaternion from the given angle (in degrees) and axis (as a vector). This represents a rotation around the given axis by the given angle.")
.examples("axisangle(90, (vector from player's facing))")
.since("INSERT VERSION");
.since("2.10.0");
}
} // end joml functions

Expand Down Expand Up @@ -728,7 +728,7 @@ public String[] executeSimple(Object[][] params) {
"\ttrigger:",
"\t\tset {_money} to formatNumber({money::%sender's uuid%})",
"\t\tsend \"Your balance: %{_money}%\" to sender")
.since("INSERT VERSION");
.since("2.10.0");
}

}
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/classes/data/JavaClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public boolean mustSyncDeserialization() {
.user("quaternionf?s?")
.name("Quaternion")
.description("Quaternions are four dimensional vectors, often used for representing rotations.")
.since("INSERT VERSION")
.since("2.10.0")
.parser(new Parser<>() {
public boolean canParse(ParseContext context) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondCanSee.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"if the player can see the last spawned entity:",
"\tmessage \"hello there!\""
})
@Since("2.3, INSERT VERSION (entities)")
@Since("2.3, 2.10.0 (entities)")
@RequiredPlugins("Minecraft 1.19+ (entities)")
public class CondCanSee extends Condition {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\tsend \"You cannot partake in finding the colored word.\""
})
@RequiredPlugins("Paper")
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondChatColors extends PropertyCondition<Player> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"send \"<gray>This server may contain mature chat messages. You have been warned!\" to player",
})
@RequiredPlugins("Paper")
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondChatFiltering extends PropertyCondition<Player> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"\tsend action bar \"Server shutting down in 5 minutes!\""
})
@RequiredPlugins("Paper")
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondChatVisibility extends Condition {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondIsCharged.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Description("Checks if a creeper, wither, or wither skull is charged (powered).")
@Examples({"if the last spawned creeper is charged:",
"\tbroadcast \"A charged creeper is at %location of last spawned creeper%\""})
@Since("2.5, INSERT VERSION (withers, wither skulls)")
@Since("2.5, 2.10.0 (withers, wither skulls)")
public class CondIsCharged extends PropertyCondition<Entity> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"if {_block} is conditional:",
"\tmake {_block} unconditional"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondIsCommandBlockConditional extends PropertyCondition<Block> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"if 5 is evenly divisible by 5:",
"if 11 cannot be evenly divided by 10:",
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondIsDivisibleBy extends Condition {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"\tif loop-value is not invulnerable:",
"\t\tbroadcast \"the gamemode %loop-value% is vulnerable!\""
})
@Since("2.5, INSERT VERSION (gamemode)")
@Since("2.5, 2.10.0 (gamemode)")
@RequiredPlugins("Paper 1.20.6+ (gamemodes)")
public class CondIsInvulnerable extends PropertyCondition<Object> {
private static final boolean SUPPORTS_GAMEMODE = Skript.methodExists(GameMode.class, "isInvulnerable");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondIsTamed.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"send true if {_horse} is tamed",
"tame {_horse} if {_horse} is untamed"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondIsTamed extends PropertyCondition<Entity> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondLidState.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"if the lid of {_chest} is closed:",
"\topen the lid of {_block}"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondLidState extends PropertyCondition<Block> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"if {_dates::*} have passed:",
"\t# this will be false"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class CondPastFuture extends Condition {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffCharge.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"on spawn of creeper:",
"\tcharge the event-entity"
})
@Since("2.5, INSERT VERSION (wither skulls)")
@Since("2.5, 2.10.0 (wither skulls)")
public class EffCharge extends Effect {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"make command block {_block} conditional",
"make command block {_block} unconditional if {_block} is conditional"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class EffCommandBlockConditional extends Effect {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffConnect.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"transfer player to server \"my.server.com\"",
"transfer player to server \"localhost\" on port 25566"
})
@Since("2.3, INSERT VERSION (transfer)")
@Since("2.3, 2.10.0 (transfer)")
public class EffConnect extends Effect {

public static final String BUNGEE_CHANNEL = "BungeeCord";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffDetonate.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@Name("Detonate Entities")
@Description("Immediately detonates an entity. Accepted entities are fireworks, TNT minecarts, primed TNT, wind charges and creepers.")
@Examples("detonate last launched firework")
@Since("INSERT VERSION")
@Since("2.10.0")
public class EffDetonate extends Effect {

private static final boolean HAS_WINDCHARGE = Skript.classExists("org.bukkit.entity.WindCharge");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"",
"reveal hidden players of players"
})
@Since("2.3, INSERT VERSION (entities)")
@Since("2.3, 2.10.0 (entities)")
@RequiredPlugins("Minecraft 1.19+ (entities)")
public class EffEntityVisibility extends Effect {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffLidState.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"open the lid of {_chest}",
"close the lid of {_blocks::*}"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class EffLidState 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 @@ -44,7 +44,7 @@
"sort {_words::*} in descending order by length of input # longest to shortest",
"sort {_words::*} based on {tastiness::%input%} # sort based on custom value"
})
@Since("2.9.0, INSERT VERSION (sort order)")
@Since("2.9.0, 2.10.0 (sort order)")
@Keywords("input")
public class EffSort extends Effect implements InputSource {

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/effects/EffTame.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tame {_horse}",
"untame {_horse}"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class EffTame extends Effect {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class EvtBlock extends SkriptEvent {
"\tbroadcast event-entities",
"on block drop of oak log:"
)
.since("INSERT VERSION");
.since("2.10.0");
}

@Nullable
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtClick.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class EvtClick extends SkriptEvent {
"on click with a sword:",
"on click on chest[facing=north]:",
"on click on campfire[lit=true]:")
.since("1.0, INSERT VERSION (blockdata)");
.since("1.0, 2.10.0 (blockdata)");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/events/EvtEntityPotion.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class EvtEntityPotion extends SkriptEvent {
"\t\tbroadcast \"A potion effect was added to %event-entity%!\" ",
"",
"on entity potion effect modification of night vision:")
.since("INSERT VERSION");
.since("2.10.0");
}

@SuppressWarnings("unchecked")
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 @@ -764,7 +764,7 @@ public class SimpleEvents {
"\t\tsend \"Diamonds belong in the money pit!\" to player",
"\t\tcancel event"
)
.since("INSERT VERSION");
.since("2.10.0");
}
{
final Class<? extends Event> eventClass;
Expand Down Expand Up @@ -829,7 +829,7 @@ public class SimpleEvents {
"on broadcast:",
"\tset broadcast-message to \"&c[BROADCAST] %broadcasted message%\""
)
.since("INSERT VERSION");
.since("2.10.0");

Skript.registerEvent("Experience Cooldown Change", SimpleEvent.class, PlayerExpCooldownChangeEvent.class, "player (experience|[e]xp) cooldown change")
.description(
Expand All @@ -843,7 +843,7 @@ public class SimpleEvents {
"\tbroadcast past event-timespan",
"\tbroadcast xp cooldown change reason"
)
.since("INSERT VERSION");
.since("2.10.0");

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"\t\tremove jack-o-lantern from bartering output",
"\t\tbroadcast \"it's not halloween yet!\""
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprBarterDrops extends SimpleExpression<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"\tif the bartering input is a gold ingot:",
"\t\tbroadcast \"my precious...\""
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprBarterInput extends SimpleExpression<ItemType> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"",
"set block data of target block to oak_stairs[facing=south;waterlogged=true]"
})
@Since("2.5, 2.5.2 (set), INSERT VERSION (block displays)")
@Since("2.5, 2.5.2 (set), 2.10.0 (block displays)")
public class ExprBlockData extends SimplePropertyExpression<Object, BlockData> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"play sound (break sound of dirt) at all players",
"set {_sounds::*} to place sounds of dirt, grass block, blue wool and stone"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprBlockSound extends SimpleExpression<String> {

public enum SoundType {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprColorOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"\tmessage \"This wool block is <%color of block%>%color of block%<reset>!\"",
"\tset the color of the block to black"
})
@Since("1.2, INSERT VERSION (displays)")
@Since("1.2, 2.10.0 (displays)")
public class ExprColorOf extends PropertyExpression<Object, Color> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"send command of {_block}",
"set command of {_cmdMinecart} to \"say asdf\""
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprCommandBlockCommand extends SimplePropertyExpression<Object, String> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"\t\ttame {_horse}",
"\t\tset tamer of {_horse} to {_p}"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprDomestication extends SimplePropertyExpression<LivingEntity, Integer> {

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/expressions/ExprEntities.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"heal all tamed wolves in radius 2000 around {town center}",
"delete all monsters in chunk at player",
"size of all players within {_corner::1} and {_corner::2}}"})
@Since("1.2.1, 2.5 (chunks), INSERT VERSION (within)")
@Since("1.2.1, 2.5 (chunks), 2.10.0 (within)")
public class ExprEntities extends SimpleExpression<Entity> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"play sound (hurt sound of player) at player",
"set {_sounds::*} to death sounds of (all mobs in radius 10 of player)"
})
@Since("INSERT VERSION")
@Since("2.10.0")
@RequiredPlugins("Spigot 1.19.2+")
public class ExprEntitySound extends SimpleExpression<String> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"\tbreeding father is a cow",
"\tset dropped experience to 10"
})
@Since("2.1, 2.5.3 (block break event), 2.7 (experience change event), INSERT VERSION (breeding event)")
@Since("2.1, 2.5.3 (block break event), 2.7 (experience change event), 2.10.0 (breeding event)")
@Events({"experience spawn", "break / mine", "experience change", "entity breeding"})
public class ExprExperience extends SimpleExpression<Experience> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"if exp collection cooldown of player >= 10 minutes:",
"\tclear the experience pickup cooldown of player"
})
@Since("INSERT VERSION")
@Since("2.10.0")
public class ExprExperienceCooldown extends SimplePropertyExpression<Player, Timespan> {

static {
Expand Down
Loading

0 comments on commit d89d654

Please sign in to comment.