Class SubCreateEvent

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

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

    • SubCreateEvent

      public SubCreateEvent(UUID player, Host host, String name, SubCreator.ServerTemplate template, Version version, int port)
      Server Create Event
      Parameters:
      player - Player Creating
      host - Potential Host
      name - Server Name
      template - Server Template
      version - Server Version
      port - Server Port Number
    • SubCreateEvent

      public SubCreateEvent(UUID player, SubServer server, SubCreator.ServerTemplate template, Version version)
      Server Create Event (as an Update)
      Parameters:
      player - Player Updating
      server - Server to be Updated
      template - Server Template
      version - Server Version
  • Method Details

    • getHost

      public Host 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 SubServer getUpdatingServer()
      Get the Server that's being updated
      Returns:
      Updating Server
    • getName

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

      public SubCreator.ServerTemplate getTemplate()
      Get the Template to Use
      Returns:
      Server Template
    • setTemplate

      public void setTemplate(SubCreator.ServerTemplate value)
      Set the Template to Use
      Parameters:
      value - Value
    • getVersion

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

      public void setVersion(Version value)
      Set the Version the Server will use
      Parameters:
      value - Value
    • 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
    • isCancelled

      public boolean isCancelled()
      Gets the Cancelled Status
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      Cancelled Status
    • setCancelled

      public void setCancelled(boolean value)
      Sets the Cancelled Status
      Specified by:
      setCancelled in interface Cancellable