Interface EndManager
public interface EndManager
API for interacting with BuildMC's End event system.
Provides methods to open or close the End, either with a custom announcement key or using the plugin's default keys.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancloseEnd(@Nullable org.bukkit.command.CommandSender sender, @NotNull EndChangeCause cause) Requests that the End be closed using BuildMC's default announcement key.booleancloseEnd(@Nullable org.bukkit.command.CommandSender sender, @NotNull EndChangeCause cause, @NotNull String announcementKey) Requests that the End be closed with a custom announcement key.@NotNull EndStateReturns the current state of the End.booleanopenEnd(@Nullable org.bukkit.command.CommandSender sender, @NotNull EndChangeCause cause) Requests that the End be opened using BuildMC's default announcement key.booleanopenEnd(@Nullable org.bukkit.command.CommandSender sender, @NotNull EndChangeCause cause, @NotNull String announcementKey) Requests that the End be opened with a custom announcement key.
-
Method Details
-
openEnd
boolean openEnd(@Nullable @Nullable org.bukkit.command.CommandSender sender, @NotNull @NotNull EndChangeCause cause, @NotNull @NotNull String announcementKey) Requests that the End be opened with a custom announcement key.- Parameters:
sender- the CommandSender triggering the open; may be nullcause- the reason the End is openingannouncementKey- the announcement message key- Returns:
- true if the operation was successful (not cancelled)
-
closeEnd
boolean closeEnd(@Nullable @Nullable org.bukkit.command.CommandSender sender, @NotNull @NotNull EndChangeCause cause, @NotNull @NotNull String announcementKey) Requests that the End be closed with a custom announcement key.- Parameters:
sender- the CommandSender triggering the close; may be nullcause- the reason the End is closingannouncementKey- the announcement message key- Returns:
- true if the operation was successful (not cancelled)
-
openEnd
boolean openEnd(@Nullable @Nullable org.bukkit.command.CommandSender sender, @NotNull @NotNull EndChangeCause cause) Requests that the End be opened using BuildMC's default announcement key.- Parameters:
sender- the CommandSender triggering the open; may be nullcause- the reason the End is opening- Returns:
- true if the operation was successful (not cancelled)
-
closeEnd
boolean closeEnd(@Nullable @Nullable org.bukkit.command.CommandSender sender, @NotNull @NotNull EndChangeCause cause) Requests that the End be closed using BuildMC's default announcement key.- Parameters:
sender- the CommandSender triggering the close; may be nullcause- the reason the End is closing- Returns:
- true if the operation was successful (not cancelled)
-
getCurrentState
-