SteamWar/SpigotCore
Archiviert
13
0

Fix SWCommandUtils tabComplete of GameMode

Dieser Commit ist enthalten in:
yoyosource 2021-04-02 17:30:41 +02:00
Ursprung a35c42faa2
Commit 0b21b743e4

Datei anzeigen

@ -70,7 +70,7 @@ public class SWCommandUtils {
if (s.equals("sp") || s.equals("spectator") || s.equals("3")) return GameMode.SPECTATOR; if (s.equals("sp") || s.equals("spectator") || s.equals("3")) return GameMode.SPECTATOR;
if (s.equals("a") || s.equals("adventure") || s.equals("2")) return GameMode.ADVENTURE; if (s.equals("a") || s.equals("adventure") || s.equals("2")) return GameMode.ADVENTURE;
return null; return null;
}, s -> Arrays.asList("s", "survival", "0", "c", "creative", "1", "sp", "specator", "3", "a", "adventure", "2"))); }, s -> Arrays.asList("s", "survival", "0", "c", "creative", "1", "sp", "spectator", "3", "a", "adventure", "2")));
} }
private static void addMapper(Class<?> clazz, Class<?> alternativeClazz, TypeMapper<?> mapper) { private static void addMapper(Class<?> clazz, Class<?> alternativeClazz, TypeMapper<?> mapper) {