1
0
mirror of https://github.com/moparisthebest/xAuth synced 2024-12-21 22:58:51 -05:00

1. Fixed strikes not resetting

Writing up post for beta release now
This commit is contained in:
Zach Iverson 2011-06-19 17:28:51 -04:00
parent 341623d5e1
commit 79ef31afff
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/.settings
/lib
/release
/bin
/target
/.classpath

View File

@ -218,6 +218,7 @@ public class xAuth extends JavaPlugin {
dataManager.insertSession(session);
removeGuest(xPlayer);
xPlayer.setStrikes(0);
}
public void changePassword(Account account, String newPass) {
@ -271,6 +272,8 @@ public class xAuth extends JavaPlugin {
player.kickPlayer(xAuthMessages.get("miscKickStrike", player, null));
if (xAuthSettings.strikeAction.equals("kick"))
xAuthLog.info(player.getName() + " kicked by strike system");
xPlayer.setStrikes(0);
}
public boolean isBanned(String host) {