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
|
/.settings
|
||||||
/lib
|
/lib
|
||||||
|
/release
|
||||||
/bin
|
/bin
|
||||||
/target
|
/target
|
||||||
/.classpath
|
/.classpath
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user