mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 18:17:34 +01:00
Update AuthMePlayerListener.java
This commit is contained in:
parent
cd397c6d44
commit
69b874c832
@ -143,13 +143,11 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
player.setWalkSpeed(0.0f);
|
player.setWalkSpeed(0.0f);
|
||||||
player.setFlySpeed(0.0f);
|
player.setFlySpeed(0.0f);
|
||||||
}
|
}
|
||||||
if (!event.getFrom().getBlock().equals(event.getTo().getBlock())) {
|
|
||||||
event.setTo(event.getFrom());
|
event.setTo(event.getFrom());
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings.getMovementRadius == 0) {
|
if (Settings.getMovementRadius <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -218,7 +216,7 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
plugin.management.performJoin(player);
|
plugin.management.performJoin(player);
|
||||||
|
|
||||||
// Remove the join message while the player isn't logging in
|
// Remove the join message while the player isn't logging in
|
||||||
if ((Settings.enableProtection || Settings.delayJoinMessage) && event.getJoinMessage() != null) {
|
if (Settings.delayJoinMessage && event.getJoinMessage() != null) {
|
||||||
joinMessage.put(name, event.getJoinMessage());
|
joinMessage.put(name, event.getJoinMessage());
|
||||||
event.setJoinMessage(null);
|
event.setJoinMessage(null);
|
||||||
}
|
}
|
||||||
@ -378,7 +376,8 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
|
|
||||||
plugin.management.performQuit(player, false);
|
plugin.management.performQuit(player, false);
|
||||||
|
|
||||||
if (!PlayerCache.getInstance().isAuthenticated(name) && Settings.enableProtection)
|
// TODO: rename delayjoinmessage setting
|
||||||
|
if (!PlayerCache.getInstance().isAuthenticated(name) && Settings.delayJoinMessages)
|
||||||
event.setQuitMessage(null);
|
event.setQuitMessage(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user