Block sign interaction. Fixes #1831

This commit is contained in:
JeromSar 2016-08-26 11:57:39 +02:00
parent 71c46b5431
commit b153debdef

View File

@ -33,9 +33,6 @@ public class InteractBlocker extends FreedomService
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGH)
public void onPlayerInteract(PlayerInteractEvent event) public void onPlayerInteract(PlayerInteractEvent event)
{ {
final Player player = event.getPlayer();
final FPlayer playerdata = plugin.pl.getPlayer(player);
switch (event.getAction()) switch (event.getAction())
{ {
case RIGHT_CLICK_AIR: case RIGHT_CLICK_AIR:
@ -98,6 +95,14 @@ public class InteractBlocker extends FreedomService
event.setCancelled(true); event.setCancelled(true);
break; break;
} }
case SIGN:
case SIGN_POST:
case WALL_SIGN:
{
player.sendMessage(ChatColor.GRAY + "Sign interaction is currently disabled.");
break;
}
} }
} }
} }