Need to check everywhere :)

This commit is contained in:
Xephi 2015-04-22 00:18:50 +02:00
parent c65fe5822f
commit ebe71c5790
4 changed files with 10 additions and 2 deletions

Binary file not shown.

View File

@ -32,7 +32,7 @@
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Vault.jar</systemPath>
</dependency>

View File

@ -14,6 +14,7 @@ import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import java.util.logging.Logger;
import java.util.zip.GZIPInputStream;
@ -34,6 +35,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
import com.earth2me.essentials.Essentials;
import com.earth2me.essentials.OfflinePlayer;
import com.maxmind.geoip.LookupService;
import com.onarandombox.MultiverseCore.MultiverseCore;

View File

@ -11,6 +11,7 @@ import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -386,8 +387,13 @@ public class AuthMePlayerListener implements Listener {
try {
player = Bukkit.getPlayer(event.getUniqueId());
} catch (Exception e) {
try {
player = Bukkit.getOfflinePlayer(event.getUniqueId()).getPlayer();
} catch (Exception ex)
{
return;
}
}
if (player == null)
return;
final String name = player.getName().toLowerCase();