Skip to content

Commit

Permalink
Prepare for update of 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Oct 29, 2020
1 parent 07e38b6 commit c42d9bb
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tk.shanebee</groupId>
<artifactId>SkBee</artifactId>
<version>1.7.2</version>
<version>1.8.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public String get(@NotNull PlayerRecipeBookClickEvent event) {
Skript.registerEvent("Shear Entity", SimpleEvent.class, PlayerShearEntityEvent.class, "[player] shear entity")
.description("Called when a player shears an entity. Requires Minecraft 1.9.4+")
.examples("on player shear entity:")
.since("INSERT VERSION");
.since("1.8.0");
}

// Player Pickup XP Event
Expand All @@ -71,7 +71,7 @@ public String get(@NotNull PlayerRecipeBookClickEvent event) {
.description("Fired when a player is attempting to pick up an experience orb. Requires Paper 1.12.2+")
.examples("on player pickup xp:",
"\tadd 10 to level of player")
.since("INSERT VERSION");
.since("1.8.0");
}

// Player Elytra Boost Event
Expand All @@ -80,7 +80,7 @@ public String get(@NotNull PlayerRecipeBookClickEvent event) {
.description("Fired when a player boosts elytra flight with a firework. Requires Paper 1.13.2+")
.examples("on elytra boost:",
"\tpush player forward at speed 50")
.since("INSERT VERSION");
.since("1.8.0");
EventValues.registerEventValue(PlayerElytraBoostEvent.class, ItemType.class, new Getter<ItemType, PlayerElytraBoostEvent>() {
@Override
public ItemType get(PlayerElytraBoostEvent e) {
Expand Down Expand Up @@ -128,7 +128,7 @@ public Location get(@NotNull EntityPathfindEvent event) {
.examples("on entity zap:",
"\tif event-entity is a pig:",
"\t\tspawn 3 zombie pigmen at event-location")
.since("INSERT VERSION");
.since("1.8.0");
EventValues.registerEventValue(EntityZapEvent.class, Location.class, new Getter<Location, EntityZapEvent>() {
@Override
public Location get(EntityZapEvent e) {
Expand All @@ -146,7 +146,7 @@ public Location get(EntityZapEvent e) {
.examples("on projectile collide:",
"\tif event-entity is a player:",
"\t\tcancel event")
.since("INSERT VERSION");
.since("1.8.0");
EventValues.registerEventValue(ProjectileCollideEvent.class, Entity.class, new Getter<Entity, ProjectileCollideEvent>() {
@Override
public Entity get(ProjectileCollideEvent e) {
Expand All @@ -167,7 +167,7 @@ public Projectile get(ProjectileCollideEvent e) {
.description("Fired when an Entity is knocked back by the hit of another Entity. " +
"If this event is cancelled, the entity is not knocked back. Requires Paper 1.12.2+")
.examples("on entity knockback:", "\tif event-entity is a cow:", "\t\tcancel event")
.since("INSERT VERSION");
.since("1.8.0");
}

// Experience Orb Merge Event
Expand All @@ -176,7 +176,7 @@ public Projectile get(ProjectileCollideEvent e) {
.description("Fired anytime the server is about to merge 2 experience orbs into one. Requires Paper 1.12.2+")
.examples("on xp merge:",
"\tcancel event")
.since("INSERT VERSION");
.since("1.8.0");
}

// == BLOCK EVENTS == //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Name("Knockback Attacker/Victim")
@Description("The attacker/victim in an entity knockback event. Paper 1.12.2+")
@Examples({"on entity knockback:", "\tif knockback attacker is a player:", "\t\tif knockback victim is a sheep:", "\t\t\tcancel event"})
@Since("INSERT VERSION")
@Since("1.8.0")
public class ExprKnockbackAttackerVictim extends SimpleExpression<Entity> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"set book author of {_i} to \"Bob\"",
"set book title of {_i} to \"MyBook\"",
"give player 1 of {_i}"})
@Since("INSERT VERSION")
@Since("1.8.0")
public class ExprBookPages extends SimpleExpression<BaseComponent> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@Name("World Exists")
@Description("Check if a world exists in your world directory.")
@Examples("if world \"my-world\" exists:")
@Since("INSERT VERSION")
@Since("1.8.0")
public class CondWorldExists extends Condition {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"load world from world creator {_w}", "",
"load world \"my-world\"",
"unload world world(\"my-world\")"})
@Since("INSERT VERSION")
@Since("1.8.0")
public class EffLoadWorld extends Effect {

private static final BeeWorldConfig BEE_WORLD_CONFIG;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"",
"set {_clone} to a new world creator named \"world-clone\" to clone world \"world\"",
"load world from creator {_clone}"})
@Since("INSERT VERSION")
@Since("1.8.0")
public class ExprWorldCreator extends SimpleExpression<BeeWorldCreator> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"set world type of {_w} to flat",
"set should generate structures of {_w} to true",
"load world from creator {_w}"})
@Since("INSERT VERSION")
@Since("1.8.0")
public class ExprWorldCreatorOption extends SimplePropertyExpression<BeeWorldCreator, Object> {

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Types {
.name("World Creator")
.description("Used to create new worlds.")
.examples("set {_creator} to new world creator named \"my-world\"")
.since("INSERT VERSION"));
.since("1.8.0"));

EnumUtils<Environment> environments = new EnumUtils<>(Environment.class, "environment types");
Classes.registerClass(new ClassInfo<>(Environment.class, "environment")
Expand All @@ -30,7 +30,7 @@ public class Types {
.description("The environment of a world.")
.usage(environments.getAllNames())
.examples("set environment of {_creator} to nether")
.since("INSERT VERSION")
.since("1.8.0")
.parser(new Parser<Environment>() {

@Nullable
Expand Down Expand Up @@ -62,7 +62,7 @@ public Environment parse(@NotNull String string, @NotNull ParseContext context)
.description("The type of a world")
.usage(worldTypes.getAllNames())
.examples("set world type of {_creator} to flat")
.since("INSERT VERSION")
.since("1.8.0")
.parser(new Parser<WorldType>() {

@Nullable
Expand Down

0 comments on commit c42d9bb

Please sign in to comment.