Merge pull request #2455 from AgentTroll/patch-94

Fixes #94 - Player with same first letters conflict
This commit is contained in:
Joseph Hirschfeld 2019-04-17 02:46:20 -04:00 committed by GitHub
commit ddcb7041f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {