mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
Allow UUIDs to be used in commands
This commit is contained in:
parent
25e93d06ee
commit
730b77f227
@ -35,6 +35,10 @@ public class UUIDTranslator {
|
||||
if (uuid != null)
|
||||
return uuid;
|
||||
|
||||
if (UUID_PATTERN.matcher(player).find()) {
|
||||
return UUID.fromString(player);
|
||||
}
|
||||
|
||||
if (!plugin.getProxy().getConfig().isOnlineMode()) {
|
||||
uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + player).getBytes(Charsets.UTF_8));
|
||||
uuidMap.put(player, uuid);
|
||||
|
Loading…
Reference in New Issue
Block a user