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:
parent
feac58c6d6
commit
ce0559cda9
@ -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());
|
||||
|
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user