Autoclaim mode is now disabled when a player is removed from a faction (whether leaving, being kicked, or whatever)

Also the new permission I missed in the last commit
This commit is contained in:
Brettflan 2011-10-01 06:10:49 -05:00
parent feac58c6d6
commit ce0559cda9
2 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,7 @@ public class FPlayer {
this.chatMode = ChatMode.PUBLIC;
this.role = Role.NORMAL;
this.title = "";
this.autoClaimEnabled = false;
if (playerName != null && !playerName.isEmpty()) {
SpoutFeatures.updateAppearances(this.getPlayer());

View File

@ -441,6 +441,10 @@ public class Factions extends JavaPlugin {
return hasPerm(sender, "factions.peacefulExplosionToggle");
}
public static boolean hasPermViewAnyFactionBalance(CommandSender sender) {
return hasPerm(sender, "factions.viewAnyFactionBalance");
}
public static boolean isCommandDisabled(CommandSender sender, String command) {
return (hasPerm(sender, "factions.commandDisable."+command) && !hasPerm(sender, "factions.commandDisable.none"));
}