Class SubCreatedEvent

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

public class SubCreatedEvent extends Event implements SubEvent
Server Created Event
  • Constructor Details

    • SubCreatedEvent

      public SubCreatedEvent(UUID player, Host host, String name, SubCreator.ServerTemplate template, Version version, int port, SubServer server, boolean update, boolean success)
      Server Created Event
      Parameters:
      player - Player Creating
      host - Potential Host
      name - Server Name
      template - Server Template
      version - Server Version
      port - Server Port Number
      server - Server Object
      update - Update Mode Status
      success - Success Status
  • Method Details

    • getHost

      public Host 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

      public SubServer getServer()
      Get the Server that was created/updated
      Returns:
      Finished Server
    • getName

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

      public SubCreator.ServerTemplate getTemplate()
      Get the Template that was used
      Returns:
      Server Template
    • getVersion

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

      public int getPort()
      Get the Port the Server used
      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