mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-09 04:02:10 +01:00
commit
f08c462afd
@ -862,8 +862,10 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
if (!Settings.isForcedRegistrationEnabled)
|
if (!Settings.isForcedRegistrationEnabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (causeByAuthMe.containsKey(name) && causeByAuthMe.get(name))
|
if (causeByAuthMe.containsKey(name)) {
|
||||||
|
causeByAuthMe.remove(name);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ public class AsyncronousJoin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void process() {
|
public void process() {
|
||||||
AuthMePlayerListener.gameMode.put(name, player.getGameMode());
|
if (AuthMePlayerListener.gameMode.containsKey(name))
|
||||||
|
AuthMePlayerListener.gameMode.remove(name);
|
||||||
|
AuthMePlayerListener.gameMode.putIfAbsent(name, player.getGameMode());
|
||||||
BukkitScheduler sched = plugin.getServer().getScheduler();
|
BukkitScheduler sched = plugin.getServer().getScheduler();
|
||||||
|
|
||||||
if (plugin.getCitizensCommunicator().isNPC(player) || Utils.getInstance().isUnrestricted(player) || CombatTagComunicator.isNPC(player)) {
|
if (plugin.getCitizensCommunicator().isNPC(player) || Utils.getInstance().isUnrestricted(player) || CombatTagComunicator.isNPC(player)) {
|
||||||
@ -74,9 +76,8 @@ public class AsyncronousJoin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, true);
|
AuthMePlayerListener.causeByAuthMe.putIfAbsent(name, true);
|
||||||
player.setGameMode(gM);
|
player.setGameMode(gM);
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, false);
|
|
||||||
player.kickPlayer("You are not the Owner of this account, please try another name!");
|
player.kickPlayer("You are not the Owner of this account, please try another name!");
|
||||||
if (Settings.banUnsafeIp)
|
if (Settings.banUnsafeIp)
|
||||||
plugin.getServer().banIP(ip);
|
plugin.getServer().banIP(ip);
|
||||||
@ -125,9 +126,8 @@ public class AsyncronousJoin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, true);
|
AuthMePlayerListener.causeByAuthMe.putIfAbsent(name, true);
|
||||||
Utils.forceGM(player);
|
Utils.forceGM(player);
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -164,9 +164,8 @@ public class AsyncronousJoin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, true);
|
AuthMePlayerListener.causeByAuthMe.putIfAbsent(name, true);
|
||||||
Utils.forceGM(player);
|
Utils.forceGM(player);
|
||||||
AuthMePlayerListener.causeByAuthMe.put(name, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -51,6 +51,8 @@ permissions:
|
|||||||
authme.passpartu: true
|
authme.passpartu: true
|
||||||
authme.l: true
|
authme.l: true
|
||||||
authme.reg: true
|
authme.reg: true
|
||||||
|
authme.email: true
|
||||||
|
authme.captcha: true
|
||||||
authme.admin.*:
|
authme.admin.*:
|
||||||
description: Gives access to all authme admin commands
|
description: Gives access to all authme admin commands
|
||||||
children:
|
children:
|
||||||
|
Loading…
Reference in New Issue
Block a user