Class ServerSwitchListener
- java.lang.Object
-
- de.simonsator.partyandfriends.main.listener.ServerSwitchListener
-
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener
public class ServerSwitchListener extends java.lang.Object implements net.md_5.bungee.api.plugin.Listener
The class with the ServerSwitchEvent
-
-
Constructor Summary
Constructors Constructor Description ServerSwitchListener()
Initials the object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerSwitchListener
getInstance()
void
onServerSwitch(net.md_5.bungee.api.event.ServerSwitchEvent pEvent)
Will be executed if a player switches the server
-
-
-
Method Detail
-
onServerSwitch
public void onServerSwitch(net.md_5.bungee.api.event.ServerSwitchEvent pEvent)
Will be executed if a player switches the server- Parameters:
pEvent
- The ServerSwitchEvent event
-
getInstance
public static ServerSwitchListener getInstance()
-
-