mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-22 16:37:25 +00:00
Merge pull request #2455 from AgentTroll/patch-94
Fixes #94 - Player with same first letters conflict
This commit is contained in:
commit
ddcb7041f1
1 changed files with 5 additions and 1 deletions
|
@ -104,8 +104,12 @@ public abstract class EssentialsCommand implements IEssentialsCommand {
|
|||
try {
|
||||
exPlayer = server.getPlayer(UUID.fromString(searchTerm));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
if (getOffline) {
|
||||
exPlayer = server.getPlayerExact(searchTerm);
|
||||
} else {
|
||||
exPlayer = server.getPlayer(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
if (exPlayer != null) {
|
||||
user = ess.getUser(exPlayer);
|
||||
|
|
Loading…
Reference in a new issue