mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Merge pull request #2455 from AgentTroll/patch-94
Fixes #94 - Player with same first letters conflict
This commit is contained in:
commit
ddcb7041f1
@ -104,7 +104,11 @@ public abstract class EssentialsCommand implements IEssentialsCommand {
|
||||
try {
|
||||
exPlayer = server.getPlayer(UUID.fromString(searchTerm));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
exPlayer = server.getPlayer(searchTerm);
|
||||
if (getOffline) {
|
||||
exPlayer = server.getPlayerExact(searchTerm);
|
||||
} else {
|
||||
exPlayer = server.getPlayer(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
if (exPlayer != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user