mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 11:15:24 +01:00
List must be mutable. Remove debug.
This commit is contained in:
parent
721f0271aa
commit
bea9f0e394
@ -247,7 +247,6 @@ public class AdminSettingsCommand extends CompositeCommand {
|
||||
String disabled = ChatColor.stripColor(user.getTranslation("protection.panel.flag-item.setting-disabled"));
|
||||
List<String> options = new ArrayList<>();
|
||||
String lastArg = !args.isEmpty() ? args.get(args.size()-1) : "";
|
||||
System.out.println("Arg size = " + args.size());
|
||||
if (args.size() == 2) {
|
||||
// Player names or world settings
|
||||
options = Util.tabLimit(Util.getOnlinePlayerList(user), lastArg);
|
||||
|
@ -78,7 +78,7 @@ public class SettingsTab implements Tab, ClickHandler {
|
||||
List<Flag> flags = plugin.getFlagsManager().getFlags().stream().filter(f -> f.getType().equals(type))
|
||||
// We're stripping colors to avoid weird sorting issues
|
||||
.sorted(Comparator.comparing(flag -> ChatColor.stripColor(user.getTranslation(flag.getNameReference()))))
|
||||
.toList();
|
||||
.collect(Collectors.toList());
|
||||
// Remove any that are not for this game mode
|
||||
plugin.getIWM().getAddon(world).ifPresent(gm -> flags.removeIf(f -> !f.getGameModes().isEmpty() && !f.getGameModes().contains(gm)));
|
||||
// Remove any that are the wrong rank or that will be on the top row
|
||||
|
Loading…
Reference in New Issue
Block a user