Class SubEditServerEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubEditServerEvent
- All Implemented Interfaces:
Cancellable
,SubEvent
Server Edit Event
-
Constructor Summary
ConstructorDescriptionSubEditServerEvent
(UUID player, Server server, Pair<String, ?> edit) Server Edit Event -
Method Summary
Modifier and TypeMethodDescriptiongetEdit()
Gets the edit to be madeGets the player that triggered the EventGets the Server to be Editedboolean
Gets the Cancelled Statusvoid
setCancelled
(boolean value) Sets the Cancelled Status
-
Constructor Details
-
SubEditServerEvent
Server Edit Event- Parameters:
player
- Player Adding Serverserver
- Server to be Editededit
- Edit to make
-
-
Method Details
-
getServer
Gets the Server to be Edited- Returns:
- The Server to be Edited
-
getPlayer
Gets the player that triggered the Event- Returns:
- The Player that triggered this Event or null if Console
-
getEdit
Gets the edit to be made- Returns:
- Edit to be made
-
isCancelled
public boolean isCancelled()Gets the Cancelled Status- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- Cancelled Status
-
setCancelled
public void setCancelled(boolean value) Sets the Cancelled Status- Specified by:
setCancelled
in interfaceCancellable
-