SteamWar/BungeeCore
Archiviert
13
2

Hotfix TypeMappers
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-09-24 11:02:37 +02:00
Ursprung 4205bce893
Commit 5bfb2d5c71

Datei anzeigen

@ -66,6 +66,12 @@ public class TypeMappers {
return ArenaMode.getByChat(s); return ArenaMode.getByChat(s);
} }
@Override
public boolean validate(CommandSender sender, ArenaMode value, MessageSender messageSender) {
if (value == null) return true;
return value.isHistoric() == historic;
}
@Override @Override
public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) { public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) {
return ArenaMode.getAllChatNames(historic); return ArenaMode.getAllChatNames(historic);