1
0
mirror of https://github.com/moparisthebest/xAuth synced 2024-12-22 07:08: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 /.settings
/lib /lib
/release
/bin /bin
/target /target
/.classpath /.classpath

View File

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