@@ -0,0 +1,944 @@
+package com.gmail.zahusek.essentials;%0A%0Aimport org.bukkit.Material;%0Aimport org.bukkit.block.Block;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.block.Action;%0Aimport org.bukkit.event.player.PlayerInteractEvent;%0A%0Aimport com.gmail.zahusek.Main;%0A%0Apublic class PlayerInteractEvt implements Listener %7B%0A%09%0A%09Material%5B%5D sign = new Material%5B%5D %7BMaterial.WALL_SIGN, Material.SIGN_POST%7D;%0A%0A%09@EventHandler%0A%09public void onPlayerInteract(PlayerInteractEvent e) %7B%0A%09%09final Player p = (Player) e.getPlayer();%0A%09%09%0A%09%09if(!e.getAction().equals(Action.RIGHT_CLICK_BLOCK)) return;%0A%09%09%0A%09%09final Block b = e.getClickedBlock();%0A%09%09Material m = b.getType();%0A%09%09%0A%09%09if(!m.equals(sign%5B0%5D) && !m.equals(sign%5B1%5D)) return;%0A%09%09if(Main.getvalueworldguard()) if(!Main.getWorldGuard().canBuild(p, b)) return;%0A%09%09%0A%09%09e.setCancelled(true);%09%0A%09%09new PacketPlayOutOpenSignEditor(b.getLocation()).sendPacket(p);%0A%09%7D%0A%7D%0A

Create PlayerInteractEvt.java