Preload player when logging in. Fixes #182

This commit is contained in:
unknown 2014-05-13 17:11:13 +02:00
parent 73a91c02c6
commit b3e40462e2
3 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Tue May 13 17:00:06 CEST 2014 #Tue May 13 17:10:36 CEST 2014
build.number=840 build.number=843

View File

@ -35,6 +35,7 @@ public class Command_glist extends TFM_Command
if (TFM_AdminList.isSeniorAdmin(sender)) if (TFM_AdminList.isSeniorAdmin(sender))
{ {
TFM_PlayerList.getInstance().purgeAll(); TFM_PlayerList.getInstance().purgeAll();
playerMsg("Purged playerbase");
} }
else else
{ {

View File

@ -704,6 +704,7 @@ public class TFM_PlayerListener implements Listener
} }
else else
{ {
TFM_PlayerList.getInstance().getEntry(player);
TFM_Log.info("Added new player: " + TFM_Util.formatPlayer(player)); TFM_Log.info("Added new player: " + TFM_Util.formatPlayer(player));
} }
@ -777,7 +778,6 @@ public class TFM_PlayerListener implements Listener
} }
// Player Tab and auto Tags // Player Tab and auto Tags
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGH)
public static void onPlayerJoinEvent(PlayerJoinEvent event) public static void onPlayerJoinEvent(PlayerJoinEvent event)
{ {