Class SubCreateEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.ME1312.SubServers.Sync.Event.SubCreateEvent
All Implemented Interfaces:
SubEvent

public class SubCreateEvent extends Event implements SubEvent
Server Create Event
  • Constructor Details

    • SubCreateEvent

      public SubCreateEvent(UUID player, String host, String name, String template, Version version, int port, boolean update)
      Server Create Event
      Parameters:
      player - Player Creating
      host - Potential Host
      name - Server Name
      template - Server Type
      version - Server Version
      port - Server Port Number
  • Method Details

    • getHost

      public String getHost()
      Get the Host the SubServer will run on
      Returns:
      Potential Host
    • isUpdate

      public boolean isUpdate()
      Get if SubCreator is being run in update mode
      Returns:
      Update Mode Status
    • getUpdatingServer

      public void getUpdatingServer(Consumer<SubServer> callback)
      Get the Server that's being updated
      Parameters:
      callback - Updating Server
    • getName

      public String getName()
      Get the name the SubServer will use
      Returns:
      SubServer Name
    • getTemplate

      public String getTemplate()
      Get the Template to Use
      Returns:
      Server Template
    • getVersion

      public Version getVersion()
      Get the Version the Server will use
      Returns:
      Server Version
    • getPort

      public int getPort()
      Get the Port the Server will use
      Returns:
      Port Number
    • getPlayer

      public UUID getPlayer()
      Gets the player that triggered the Event
      Returns:
      The Player that triggered this Event or null if Console