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:
		| @@ -84,6 +84,7 @@ public class FPlayer { | |||||||
| 		this.chatMode = ChatMode.PUBLIC; | 		this.chatMode = ChatMode.PUBLIC; | ||||||
| 		this.role = Role.NORMAL; | 		this.role = Role.NORMAL; | ||||||
| 		this.title = ""; | 		this.title = ""; | ||||||
|  | 		this.autoClaimEnabled = false; | ||||||
|  |  | ||||||
| 		if (playerName != null && !playerName.isEmpty()) { | 		if (playerName != null && !playerName.isEmpty()) { | ||||||
| 			SpoutFeatures.updateAppearances(this.getPlayer()); | 			SpoutFeatures.updateAppearances(this.getPlayer()); | ||||||
|   | |||||||
| @@ -441,6 +441,10 @@ public class Factions extends JavaPlugin { | |||||||
| 		return hasPerm(sender, "factions.peacefulExplosionToggle"); | 		return hasPerm(sender, "factions.peacefulExplosionToggle"); | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
|  | 	public static boolean hasPermViewAnyFactionBalance(CommandSender sender) { | ||||||
|  | 		return hasPerm(sender, "factions.viewAnyFactionBalance"); | ||||||
|  | 	} | ||||||
|  | 	 | ||||||
| 	public static boolean isCommandDisabled(CommandSender sender, String command) { | 	public static boolean isCommandDisabled(CommandSender sender, String command) { | ||||||
| 		return (hasPerm(sender, "factions.commandDisable."+command) && !hasPerm(sender, "factions.commandDisable.none")); | 		return (hasPerm(sender, "factions.commandDisable."+command) && !hasPerm(sender, "factions.commandDisable.none")); | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 
				 Brettflan
					Brettflan