New conf.json setting "removePlayerDataWhenBanned" (default true), which can be disabled to prevent Factions from deleting player data for players when they are banned from the server

This commit is contained in:
Brettflan 2011-12-18 02:37:40 -06:00
parent e19b16931d
commit accf718120
2 changed files with 3 additions and 2 deletions

View File

@ -75,6 +75,7 @@ public class Conf
public static String allianceChatFormat = ChatColor.LIGHT_PURPLE+"%s:"+ChatColor.WHITE+" %s";
public static double autoLeaveAfterDaysOfInactivity = 10.0;
public static boolean removePlayerDataWhenBanned = true;
public static boolean worldGuardChecking = false;

View File

@ -416,7 +416,7 @@ public class FactionsPlayerListener extends PlayerListener
SpoutFeatures.playerDisconnect(badGuy);
// if player was banned (not just kicked), get rid of their stored info
if (event.getReason().equals("Banned by admin."))
if (Conf.removePlayerDataWhenBanned && event.getReason().equals("Banned by admin."))
{
badGuy.leave(false);
}