예제 #1
0
 @Override
 public boolean groupHas(String group, String flag, boolean def) {
   ResidenceFlagCheckEvent fc =
       new ResidenceFlagCheckEvent(residence, flag, FlagType.GROUP, group, def);
   Residence.getServ().getPluginManager().callEvent(fc);
   if (fc.isOverriden()) return fc.getOverrideValue();
   return super.groupHas(group, flag, def);
 }
예제 #2
0
 @Override
 public boolean has(String flag, boolean def) {
   ResidenceFlagCheckEvent fc =
       new ResidenceFlagCheckEvent(residence, flag, FlagType.RESIDENCE, null, def);
   Residence.getServ().getPluginManager().callEvent(fc);
   if (fc.isOverriden()) return fc.getOverrideValue();
   return super.has(flag, def);
 }
예제 #3
0
  @Override
  public boolean playerHas(String player, String world, String flag, boolean def) {
    ResidenceFlagCheckEvent fc =
        new ResidenceFlagCheckEvent(residence, flag, FlagType.PLAYER, player, def);

    Residence.getServ().getPluginManager().callEvent(fc);
    if (fc.isOverriden()) return fc.getOverrideValue();
    return super.playerHas(player, world, flag, def);
  }