SteamWar/BungeeCore
Archiviert
13
2

fix illegal argument exception

Dieser Commit ist enthalten in:
zOnlyKroks 2023-01-15 16:19:43 +01:00
Ursprung a39544abc6
Commit 184d157276

Datei anzeigen

@ -68,7 +68,7 @@ public class WhoisCommand extends SWCommand {
if (user == null) {
Message.send("UNKNOWN_PLAYER", player);
} else {
EnumSet<WhoisParameterTypes> set = EnumSet.copyOf(Arrays.asList(parameters));
EnumSet<WhoisParameterTypes> set = parameters.length == 0 ? EnumSet.noneOf(WhoisParameterTypes.class) : EnumSet.copyOf(Arrays.asList(parameters));
sendUserinfo(player, user, set);
}
}