From 0b35637a01ac0a086c8b1511eb810bd8ba7d26c0 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 29 Oct 2016 13:07:48 +0200 Subject: [PATCH] Refactoring applied --- src/main/java/buttondevteam/core/PlayerListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/buttondevteam/core/PlayerListener.java b/src/main/java/buttondevteam/core/PlayerListener.java index dd595d9..4f7fc95 100644 --- a/src/main/java/buttondevteam/core/PlayerListener.java +++ b/src/main/java/buttondevteam/core/PlayerListener.java @@ -12,17 +12,17 @@ public class PlayerListener implements Listener { @EventHandler(priority = EventPriority.HIGHEST) public void OnPlayerJoin(PlayerJoinEvent event) { - TBMCPlayer player = TBMCPlayer.LoadPlayer(event.getPlayer()); + TBMCPlayer player = TBMCPlayer.loadPlayer(event.getPlayer()); if (player == null) event.getPlayer().sendMessage("§c[TBMC] Failed to load player data! Please contact a mod."); else - TBMCPlayer.JoinPlayer(player); + TBMCPlayer.joinPlayer(player); } @EventHandler(priority = EventPriority.HIGHEST) public void OnPlayerLeave(PlayerQuitEvent event) { - TBMCPlayer player = TBMCPlayer.GetPlayer(event.getPlayer()); - TBMCPlayer.SavePlayer(player); - TBMCPlayer.QuitPlayer(player); + TBMCPlayer player = TBMCPlayer.getPlayer(event.getPlayer()); + TBMCPlayer.savePlayer(player); + TBMCPlayer.quitPlayer(player); } }