0

Added missing brackets

This commit is contained in:
Pepich 2017-02-06 21:35:57 +01:00
parent f4674fe8a6
commit cf806e107f

View File

@ -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,9 +83,11 @@ 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!");
}
}
// Disables water and lava breaking stuff
@EventHandler