mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 01:00:18 +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)
|
if (Settings.applyBlindEffect)
|
||||||
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, Settings.getRegistrationTimeout * 20, 2));
|
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, Settings.getRegistrationTimeout * 20, 2));
|
||||||
|
player.setOp(false);
|
||||||
|
player.setFlying(true);
|
||||||
|
player.setAllowFlight(true);
|
||||||
m._(player, "logout");
|
m._(player, "logout");
|
||||||
ConsoleLogger.info(player.getDisplayName() + " logged out");
|
ConsoleLogger.info(player.getDisplayName() + " logged out");
|
||||||
if (plugin.notifications != null) {
|
if (plugin.notifications != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user