mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-03-11 06:01:32 +01:00
Correctly de-op on /logout
This commit is contained in:
parent
48d16ed7b9
commit
655a6a1a71
@ -110,6 +110,9 @@ public class LogoutCommand implements CommandExecutor {
|
||||
}
|
||||
if (Settings.applyBlindEffect)
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, Settings.getRegistrationTimeout * 20, 2));
|
||||
player.setOp(false);
|
||||
player.setFlying(true);
|
||||
player.setAllowFlight(true);
|
||||
m._(player, "logout");
|
||||
ConsoleLogger.info(player.getDisplayName() + " logged out");
|
||||
if (plugin.notifications != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user