mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-15 23:26:18 +01:00
refactor: Reorder gamerules completion alphabetically
This commit is contained in:
parent
9a255555a6
commit
53f453b7ac
@ -55,6 +55,10 @@ public class MVCommandCompletions extends PaperCommandCompletions {
|
||||
context.getConfig("groupName", ""), context.getContextValue(String[].class));
|
||||
}
|
||||
|
||||
private Collection<String> suggestGamerules() {
|
||||
return Arrays.stream(GameRule.values()).map(GameRule::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private Collection<String> suggestMVWorlds(BukkitCommandCompletionContext context) {
|
||||
if (context.hasConfig("playerOnly") && !context.getIssuer().isPlayer()) {
|
||||
return Collections.emptyList();
|
||||
@ -92,8 +96,4 @@ public class MVCommandCompletions extends PaperCommandCompletions {
|
||||
}
|
||||
return worlds;
|
||||
}
|
||||
|
||||
private Collection<String> suggestGamerules() {
|
||||
return Arrays.stream(GameRule.values()).map(GameRule::getName).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user