This commit is contained in:
Luna 2022-05-17 13:40:05 -03:00 committed by GitHub
parent f41e3e33ea
commit 6d67dc53e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -566,10 +566,13 @@ public abstract class PlexCommand extends Command implements PluginIdentifiableC
protected Player getNonNullPlayer(String name)
{
try {
try
{
UUID uuid = UUID.fromString(name);
return Bukkit.getPlayer(uuid);
} catch (IllegalArgumentException ignored) {
}
catch (IllegalArgumentException ignored)
{
}