Skip to content

Commit

Permalink
Remove duplicate event registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill310 committed Dec 28, 2024
1 parent 7e97332 commit b7c5ef4
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -704,41 +704,6 @@ public class SimpleEvents {
.requiredPlugins("Paper");
}

if (Skript.classExists("io.papermc.paper.event.world.border.WorldBorderEvent")) {
Skript.registerEvent("World Border Bounds Change", SimpleEvent.class, WorldBorderBoundsChangeEvent.class, "[world[ ]]border [bounds] chang(e|ing)")
.description(
"Called when a world border changes its bounds, either over time, or instantly.",
"Using `event-number` will give the diameter of the world border."
)
.requiredPlugins("Paper 1.16+")
.examples(
"on border bounds change:",
"\tbroadcast \"You better get moving!\""
)
.since("INSERT VERSION");

Skript.registerEvent("World Border Bounds Finish Change", SimpleEvent.class, WorldBorderBoundsChangeFinishEvent.class, "[world[ ]]border [bounds] finish chang(e|ing)")
.description(
"Called when a moving world border has finished its move.",
"Using `event-number` will give the diameter of the world border."
)
.requiredPlugins("Paper 1.16+")
.examples(
"on border bounds finish change:",
"\tbroadcast \"Get inside the borders!\""
)
.since("INSERT VERSION");

Skript.registerEvent("World Border Center Change", SimpleEvent.class, WorldBorderCenterChangeEvent.class, "[world[ ]]border center chang(e|ing)")
.description("Called when a world border's center has changed.")
.requiredPlugins("Paper 1.16+")
.examples(
"on border center change:",
"\tbroadcast \"The center has moved\""
)
.since("INSERT VERSION");
}

if (Skript.classExists("io.papermc.paper.event.player.PlayerChangeBeaconEffectEvent")) {
Skript.registerEvent("Beacon Change Effect", SimpleEvent.class, PlayerChangeBeaconEffectEvent.class,
"beacon change effect", "beacon effect change", "player chang(e[s]|ing) [of] beacon effect")
Expand Down Expand Up @@ -828,7 +793,8 @@ public class SimpleEvents {
.since("INSERT VERSION");

Skript.registerEvent("World Border Center Change", SimpleEvent.class, WorldBorderCenterChangeEvent.class, "world[ ]border center chang(e|ing)")
.description("Called when a world border's center has changed.",
.description(
"Called when a world border's center has changed.",
"This event does not get called for virtual borders."
)
.requiredPlugins("Paper 1.16+")
Expand Down

0 comments on commit b7c5ef4

Please sign in to comment.