Correctly de-op on /logout

This commit is contained in:
Xephi 2014-08-25 04:34:06 +02:00
parent 48d16ed7b9
commit 655a6a1a71

View File

@ -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) {