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:
parent
341623d5e1
commit
79ef31afff
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/.settings
|
||||
/lib
|
||||
/release
|
||||
/bin
|
||||
/target
|
||||
/.classpath
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user