1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-03-02 11:21:14 +01:00

Lets catch exception

This commit is contained in:
Zrips 2018-03-14 13:19:56 +02:00
parent 99ff2d5b1a
commit 2e5c2fe094

View File

@ -819,8 +819,11 @@ public class JobsPaymentListener implements Listener {
String playerName = value.asString();
Player player = null;
UUID uuid = UUID.fromString(playerName);
UUID uuid = null;
try {
uuid = UUID.fromString(playerName);
} catch (Exception e) {
}
if (uuid == null)
return;
player = Bukkit.getPlayer(uuid);