content: package net.alex9849.arm.regionkind.regionkindcommands;
  
  import net.alex9849.arm.AdvancedRegionMarket;
  import net.alex9849.arm.Permission;
  import net.alex9849.arm.regionkind.RegionKind;
  import org.bukkit.command.CommandSender;
  import org.bukkit.entity.Player;
  
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.List;
  
  public class SetDisplayInLimitsCommand extends RegionKindOptionModifyCommand<Boolean> {
  
  
      public SetDisplayInLimitsCommand(AdvancedRegionMarket plugin) {
          super("setdisplayinlimits",
                  Arrays.asList(Permission.REGIONKIND_SET_DISPLAY_IN_LIMITS), "(false|true)",
                  "[true/false]", "", plugin);
      }
  
      @Override
      protected Boolean getSettingsFromString(CommandSender sender, String setting) {
          return Boolean.parseBoolean(setting);
      }
  
      @Override
      protected void applySetting(CommandSender sender, RegionKind object, Boolean setting) {
          object.setDisplayInLimits(setting);
      }
  
      @Override
      protected List<String> tabCompleteSettingsObject(Player player, String setting) {
          List<String> returnme = new ArrayList<>();
          if ("true".startsWith(setting)) {
              returnme.add("true");
          }
          if ("false".startsWith(setting)) {
              returnme.add("false");
          }
          return returnme;
      }
  }
  