Class SubCreatedEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
net.ME1312.SubServers.Client.Sponge.Event.SubCreatedEvent
Server Created Event
-
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Deprecated.Use simplified methods where availablegetHost()
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 usedvoid
Get the Server that's being 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 modeMethods inherited from class org.spongepowered.api.event.impl.AbstractEvent
init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spongepowered.api.event.Event
getContext, getSource
-
Constructor Details
-
SubCreatedEvent
public SubCreatedEvent(UUID player, String host, String name, String template, Version version, int port, boolean update, boolean success) Server Created Event- Parameters:
player
- Player Creatinghost
- Potential Hostname
- Server Nametemplate
- Server Typeversion
- Server Versionport
- Server Port Number
-
-
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's being updated- Parameters:
callback
- Updating 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
-
getCause
Deprecated.Use simplified methods where availableGets the cause of this Event
-