mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-23 02:35:11 +01:00
Need to check everywhere :)
This commit is contained in:
parent
c65fe5822f
commit
ebe71c5790
BIN
lib/Vault.jar
BIN
lib/Vault.jar
Binary file not shown.
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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,7 +387,12 @@ public class AuthMePlayerListener implements Listener {
|
||||
try {
|
||||
player = Bukkit.getPlayer(event.getUniqueId());
|
||||
} catch (Exception e) {
|
||||
return;
|
||||
try {
|
||||
player = Bukkit.getOfflinePlayer(event.getUniqueId()).getPlayer();
|
||||
} catch (Exception ex)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (player == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user