Klasse PartyEventManager

java.lang.Object
de.simonsator.partyandfriends.spigot.api.events.PartyEventManager

public abstract class PartyEventManager extends Object
The PartyEventManager is used to register a listener for party events. It is used as a bridge between the Spigot server and the Bungeecord server. The GUI of Party And Friends is required as it is used as a bridge.
  • Methodendetails

    • isBridgeAvailable

      public static boolean isBridgeAvailable()
      Checks if the bridge is available
      Gibt zurück:
      True if the bridge is available, false if not.
    • registerPartyEventListener

      public static void registerPartyEventListener(PartyEventListenerInterface pListener) throws BridgeNotAvailableException
      Registers a listener for party events. Please call isBridgeAvailable() before calling this method, to make sure that the bridge is available.
      Parameter:
      pListener - The listener Which will be registered
      Löst aus:
      BridgeNotAvailableException - If the bridge is not available. This means that the GUI of Party And Friends is not installed on this spigot server. The GUI is required as it used as a bridge between the Spigot server and Bungeecord server.