Constructor and Description |
---|
SubCreateEvent(java.util.UUID player,
Host host,
java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
int port)
Server Create Event
|
Modifier and Type | Method and Description |
---|---|
Host |
getHost()
Get the Host the SubServer will run on
|
int |
getMemory()
Get the Server RAM Amount (in MB)
|
java.lang.String |
getName()
Get the name the SubServer will use
|
java.util.UUID |
getPlayer()
Gets the player that triggered the Event
|
int |
getPort()
Get the Port the Server will use
|
SubCreator.ServerType |
getType()
Get the type of Server to create
|
Version |
getVersion()
Get the Version the Server will use
|
boolean |
isCancelled()
Gets the Cancelled Status
|
void |
setCancelled(boolean value)
Sets the Cancelled Status
|
void |
setMemory(int value)
Set the Server RAM Amount (in MB)
|
void |
setType(SubCreator.ServerType value)
Set the Type of Server to Create
|
void |
setVersion(Version value)
Set the Version the Server will use
|
public SubCreateEvent(java.util.UUID player, Host host, java.lang.String name, SubCreator.ServerType type, Version version, int memory, int port)
player
- Player Creatinghost
- Potential Hostname
- Server Nametype
- Server Typeversion
- Server Versionmemory
- Server RAM Amountport
- Server Port Numberpublic Host getHost()
public java.lang.String getName()
public SubCreator.ServerType getType()
public void setType(SubCreator.ServerType value)
value
- Valuepublic Version getVersion()
public void setVersion(Version value)
value
- Valuepublic int getMemory()
public void setMemory(int value)
value
- Valuepublic int getPort()
public java.util.UUID getPlayer()
public boolean isCancelled()
isCancelled
in interface net.md_5.bungee.api.plugin.Cancellable
public void setCancelled(boolean value)
setCancelled
in interface net.md_5.bungee.api.plugin.Cancellable