Update TownyResidentRequirement.java

This commit is contained in:
okx-code
2019-08-11 15:18:11 +01:00
committed by GitHub
parent b5f0f6b19c
commit ef0925e733
@@ -9,17 +9,13 @@ public class TownyResidentRequirement extends Requirement {
super(plugin, "towny-resident");
}
public TownyResidentRequirement(Rankup plugin, String name) {
super(plugin, name);
}
protected TownyResidentRequirement(Requirement clone) {
super(clone);
}
@Override
public boolean check(Player player) {
return TownyUtils.getInstance().isResident(player);
return TownyUtils.getInstance().isResident(player) == getValueBoolean();
}
@Override