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:
parent
99ff2d5b1a
commit
2e5c2fe094
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user