Don't write spoofed UUIDs to cache

This commit is contained in:
Jerom van der Sar
2014-08-30 16:24:35 +02:00
parent d1b73592af
commit 8cae042857
5 changed files with 26 additions and 9 deletions

View File

@ -151,7 +151,7 @@ public class TFM_Util
public static String getIp(OfflinePlayer player)
{
if (player instanceof Player)
if (player.isOnline())
{
return player.getPlayer().getAddress().getAddress().getHostAddress().trim();
}