public class WauzPlayerRegistrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static WauzCore |
core
A direct reference to the main class.
|
Constructor and Description |
---|
WauzPlayerRegistrator() |
Modifier and Type | Method and Description |
---|---|
static void |
login(org.bukkit.entity.Player player)
Handles the join of a player.
|
static void |
logout(org.bukkit.entity.Player player)
Handles the leave of a player.
|
static void |
respawn(org.bukkit.entity.Player player)
Handles the respawn of a player.
|
private static WauzCore core
public static void login(org.bukkit.entity.Player player) throws java.lang.Exception
player
- The player that joined.java.lang.Exception
- Error on login.WauzPlayerDataPool.regPlayer(Player)
,
CharacterManager.equipHubItems(Player)
public static void logout(org.bukkit.entity.Player player)
player
- The player that left.WauzPlayerBossBar.clearBar(Player)
,
PlayerConfigurator.setLastPlayed(org.bukkit.OfflinePlayer)
,
CharacterManager.logoutCharacter(Player)
,
WauzPlayerDataPool.unregPlayer(Player)
public static void respawn(org.bukkit.entity.Player player)
player
- The player that is respawning.