Removed autoLeaveImmunity due to missdesign in the Permissions plugin.

This commit is contained in:
Olof Larsson 2011-03-24 00:26:01 +01:00
parent b0f09db054
commit 48ede9d7bf
2 changed files with 0 additions and 11 deletions

View File

@ -510,13 +510,6 @@ public class FPlayer {
double toleranceMillis = Conf.autoLeaveAfterDaysOfInactivity * 24 * 60 * 60 * 1000; double toleranceMillis = Conf.autoLeaveAfterDaysOfInactivity * 24 * 60 * 60 * 1000;
for (FPlayer fplayer : FPlayer.getAll()) { for (FPlayer fplayer : FPlayer.getAll()) {
// Test if the player is immune
if (Factions.Permissions != null) {
if (Factions.Permissions.has(fplayer.getPlayer(), "factions.autoLeaveImmunity")) {
continue;
}
}
if (now - fplayer.getLastLoginTime() > toleranceMillis) { if (now - fplayer.getLastLoginTime() > toleranceMillis) {
fplayer.leave(); fplayer.leave();
} }

View File

@ -212,10 +212,6 @@ public class Factions extends JavaPlugin {
return hasPerm(sender, "factions.manageSafeZone", true); return hasPerm(sender, "factions.manageSafeZone", true);
} }
public static boolean hasPermAutoLeaveImmunity(CommandSender sender) {
return hasPerm(sender, "factions.autoLeaveImmunity", true);
}
private static boolean hasPerm(CommandSender sender, String permNode, boolean fallbackOnlyOp) { private static boolean hasPerm(CommandSender sender, String permNode, boolean fallbackOnlyOp) {
if (Factions.Permissions == null || ! (sender instanceof Player)) { if (Factions.Permissions == null || ! (sender instanceof Player)) {
return fallbackOnlyOp == false || sender.isOp(); return fallbackOnlyOp == false || sender.isOp();