mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 02:27:43 +01:00
Fixed #302
This commit is contained in:
parent
15cc6092d1
commit
7321ce0007
@ -89,7 +89,7 @@ public class AnalyzeCommand extends SubCommand {
|
||||
List<ServerInfo> bukkitServers = plugin.getDB().getServerTable().getBukkitServers();
|
||||
Optional<ServerInfo> server = bukkitServers.stream().filter(info -> {
|
||||
String serverIdentifier = args[0];
|
||||
return Integer.toString(info.getId()).equals(serverIdentifier) || info.getName().equals(serverIdentifier);
|
||||
return Integer.toString(info.getId()).equals(serverIdentifier) || info.getName().equalsIgnoreCase(serverIdentifier);
|
||||
}).findFirst();
|
||||
if (server.isPresent()) {
|
||||
serverUUID = server.get().getUuid();
|
||||
|
Loading…
Reference in New Issue
Block a user