From 655a6a1a71fe39e7d6450dccb06be439513d3db2 Mon Sep 17 00:00:00 2001 From: Xephi Date: Mon, 25 Aug 2014 04:34:06 +0200 Subject: [PATCH] Correctly de-op on /logout --- src/main/java/fr/xephi/authme/commands/LogoutCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/fr/xephi/authme/commands/LogoutCommand.java b/src/main/java/fr/xephi/authme/commands/LogoutCommand.java index 83c4adf9f..d558cc42f 100644 --- a/src/main/java/fr/xephi/authme/commands/LogoutCommand.java +++ b/src/main/java/fr/xephi/authme/commands/LogoutCommand.java @@ -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) {