mirror of https://github.com/plexusorg/Plex.git
allman
This commit is contained in:
parent
f41e3e33ea
commit
6d67dc53e9
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue