From 59bd3ac523163e6fd8067fc1bcd950d640a85886 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 24 Oct 2016 20:38:35 +0200 Subject: [PATCH] Fixed visibility levels --- src/main/java/buttondevteam/lib/TBMCPlayer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/buttondevteam/lib/TBMCPlayer.java b/src/main/java/buttondevteam/lib/TBMCPlayer.java index 8a0840a..fd6e129 100644 --- a/src/main/java/buttondevteam/lib/TBMCPlayer.java +++ b/src/main/java/buttondevteam/lib/TBMCPlayer.java @@ -70,7 +70,7 @@ public class TBMCPlayer { return TBMCPlayer.LoadPlayer(p); } - protected static TBMCPlayer LoadPlayer(OfflinePlayer p) { + public static TBMCPlayer LoadPlayer(OfflinePlayer p) { if (OnlinePlayers.containsKey(p.getUniqueId())) return OnlinePlayers.get(p.getUniqueId()); File file = new File(TBMC_PLAYERS_DIR); @@ -123,7 +123,7 @@ public class TBMCPlayer { return player; } - static void SavePlayer(TBMCPlayer player) { + public static void SavePlayer(TBMCPlayer player) { YamlConfiguration yc = new YamlConfiguration(); yc.set("playername", player.PlayerName); Bukkit.getServer().getPluginManager().callEvent(new TBMCPlayerSaveEvent(yc, player)); @@ -134,12 +134,12 @@ public class TBMCPlayer { } } - static void JoinPlayer(TBMCPlayer player) { + public static void JoinPlayer(TBMCPlayer player) { OnlinePlayers.put(player.UUID, player); Bukkit.getServer().getPluginManager().callEvent(new TBMCPlayerJoinEvent(player)); } - static void QuitPlayer(TBMCPlayer player) { + public static void QuitPlayer(TBMCPlayer player) { OnlinePlayers.remove(player.UUID); Bukkit.getServer().getPluginManager().callEvent(new TBMCPlayerQuitEvent(player)); }