public class SubCreateEvent extends Event
Constructor and Description |
---|
SubCreateEvent(java.util.UUID player,
java.lang.String host,
java.lang.String name,
SubCreator.ServerType type,
Version version,
int memory,
int port)
Server Create Event
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
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
|
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
|
getAPI, getHandlers, getPlugin, toString
public SubCreateEvent(java.util.UUID player, java.lang.String 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 java.lang.String 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()