From cf806e107f927e5533f5b7cd2ac0d930da88f0b8 Mon Sep 17 00:00:00 2001 From: Pepich Date: Mon, 6 Feb 2017 21:35:57 +0100 Subject: [PATCH] Added missing brackets --- src/com/redstoner/modules/misc/Misc.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/misc/Misc.java b/src/com/redstoner/modules/misc/Misc.java index 8301d85..84820bf 100644 --- a/src/com/redstoner/modules/misc/Misc.java +++ b/src/com/redstoner/modules/misc/Misc.java @@ -19,7 +19,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 1, minor = 0, revision = 0, compatible = 1) +@Version(major = 1, minor = 0, revision = 1, compatible = 1) public class Misc implements Module, Listener { private boolean enabled = false; @@ -83,8 +83,10 @@ public class Misc implements Module, Listener Player player = event.getPlayer(); if (!event.isCancelled() && event.getCause() == TeleportCause.SPECTATE && !player.hasPermission("utils.tp.spectate")) + { event.setCancelled(true); - Utils.sendErrorMessage(event.getPlayer(), null, "Spectator teleportation is disabled!"); + Utils.sendErrorMessage(event.getPlayer(), null, "Spectator teleportation is disabled!"); + } } // Disables water and lava breaking stuff