remove references to loadedchunks

This commit is contained in:
dordsor21 2023-10-01 10:35:00 +01:00
parent 9ebc5b81de
commit ce8daed885
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -71,7 +71,7 @@ public class Debug extends SubCommand {
TranslatableCaption.of("commandconfig.command_syntax"), TranslatableCaption.of("commandconfig.command_syntax"),
TagResolver.resolver( TagResolver.resolver(
"value", "value",
Tag.inserting(Component.text("/plot debug <loadedchunks | player | debug-players | entitytypes | msg>")) Tag.inserting(Component.text("/plot debug <player | debug-players | entitytypes | msg>"))
) )
); );
} }
@ -186,7 +186,7 @@ public class Debug extends SubCommand {
@Override @Override
public Collection<Command> tab(final PlotPlayer<?> player, String[] args, boolean space) { public Collection<Command> tab(final PlotPlayer<?> player, String[] args, boolean space) {
return Stream.of("loadedchunks", "debug-players", "entitytypes") return Stream.of("debug-players", "entitytypes")
.filter(value -> value.startsWith(args[0].toLowerCase(Locale.ENGLISH))) .filter(value -> value.startsWith(args[0].toLowerCase(Locale.ENGLISH)))
.map(value -> new Command(null, false, value, "plots.admin", RequiredType.NONE, null) { .map(value -> new Command(null, false, value, "plots.admin", RequiredType.NONE, null) {
}).collect(Collectors.toList()); }).collect(Collectors.toList());