Class SubCreatedEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Bungee.Event.SubCreatedEvent
- All Implemented Interfaces:
SubEvent
Server Created Event
-
Constructor Summary
ConstructorDescriptionSubCreatedEvent
(UUID player, Host host, String name, SubCreator.ServerTemplate template, Version version, int port, SubServer server, boolean update, boolean success) Server Created Event -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Get the Host the SubServer runs ongetName()
Get the name the SubServer usedGets the player that triggered the Eventint
getPort()
Get the Port the Server usedGet the Server that was created/updatedGet the Template that was usedGet the Version the Server usedboolean
Get if the operation was a successboolean
Get if SubCreator was being run in update mode
-
Constructor Details
-
SubCreatedEvent
public SubCreatedEvent(UUID player, Host host, String name, SubCreator.ServerTemplate template, Version version, int port, SubServer server, boolean update, boolean success) Server Created Event- Parameters:
player
- Player Creatinghost
- Potential Hostname
- Server Nametemplate
- Server Templateversion
- Server Versionport
- Server Port Numberserver
- Server Objectupdate
- Update Mode Statussuccess
- Success Status
-
-
Method Details
-
getHost
Get the Host the SubServer runs on- Returns:
- Host
-
wasUpdate
public boolean wasUpdate()Get if SubCreator was being run in update mode- Returns:
- Update Mode Status
-
wasSuccessful
public boolean wasSuccessful()Get if the operation was a success- Returns:
- Success Status
-
getServer
Get the Server that was created/updated- Returns:
- Finished Server
-
getName
Get the name the SubServer used- Returns:
- SubServer Name
-
getTemplate
Get the Template that was used- Returns:
- Server Template
-
getVersion
Get the Version the Server used- Returns:
- Server Version
-
getPort
public int getPort()Get the Port the Server used- Returns:
- Port Number
-
getPlayer
Gets the player that triggered the Event- Returns:
- The Player that triggered this Event or null if Console
-