From ce0559cda9eeae440bc314feb36385ab61284b2a Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sat, 1 Oct 2011 06:10:49 -0500 Subject: [PATCH] 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 --- src/com/massivecraft/factions/FPlayer.java | 1 + src/com/massivecraft/factions/Factions.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/com/massivecraft/factions/FPlayer.java b/src/com/massivecraft/factions/FPlayer.java index 30f84cbd..28de534f 100644 --- a/src/com/massivecraft/factions/FPlayer.java +++ b/src/com/massivecraft/factions/FPlayer.java @@ -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()); diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index 003e5842..07fad459 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -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")); }