예제 #1
0
 public void setAreaFlag(Flag flag, boolean value) {
   this.config.set("AreaFlags." + flag.getName(), value);
   this.getLSFlags().setAreaFlag(flag, value);
   this.configuration.saveConfig();
 }
예제 #2
0
 public void removePlayerFlag(UUID user, Flag flag) {
   this.config.set("PlayersFlags." + user.toString() + "." + flag.getName(), null);
   this.getLSFlags().getPlayerFlags(user).getFlagsAndValues().remove(flag);
   this.configuration.saveConfig();
 }
예제 #3
0
 public void setPlayerFlag(UUID user, Flag flag, boolean value) {
   this.config.set("PlayersFlags." + user.toString() + "." + flag.getName(), value);
   this.getLSFlags().setPlayerFlag(user, flag, value);
   this.configuration.saveConfig();
 }
예제 #4
0
 public void removeAreaFlag(Flag flag) {
   this.config.set("AreaFlags." + flag.getName(), null);
   this.getLSFlags().getAreaFlags().getFlagsAndValues().remove(flag);
   this.configuration.saveConfig();
 }