Exemple #1
0
 public void setAreaFlag(Flag flag, boolean value) {
   this.config.set("AreaFlags." + flag.getName(), value);
   this.getLSFlags().setAreaFlag(flag, value);
   this.configuration.saveConfig();
 }
Exemple #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();
 }
Exemple #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();
 }
Exemple #4
0
 public void removeAreaFlag(Flag flag) {
   this.config.set("AreaFlags." + flag.getName(), null);
   this.getLSFlags().getAreaFlags().getFlagsAndValues().remove(flag);
   this.configuration.saveConfig();
 }