Klasse PartyEventManager
java.lang.Object
de.simonsator.partyandfriends.spigot.api.events.PartyEventManager
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic boolean
Checks if the bridge is availablestatic void
Registers a listener for party events.
-
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 callisBridgeAvailable()
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.
-