@@ -0,0 +1,1042 @@
+package com.simplyian.superplots;%0A%0Aimport org.bukkit.Material;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0A%0Aimport com.simplyian.superplots.event.PlotInteractEvent;%0Aimport com.simplyian.superplots.plot.Plot;%0A%0A/**%0A * The listener that handles plot events.%0A * %0A * @author simplyianm%0A */%0Apublic class PlotListener implements Listener %7B%0A    @EventHandler%0A    public void onPlotInteract(PlotInteractEvent event) %7B%0A        Player player = event.getPlayer();%0A        Plot plot = event.getPlot();%0A        if (plot.isMember(player.getName())) %7B%0A            return;%0A        %7D%0A%0A        Material mat = event.getBlock().getType();%0A        if (!mat.equals(Material.LEVER) && !mat.equals(Material.STONE_BUTTON)) %7B%0A            return;%0A        %7D%0A%0A        player.sendMessage(MsgColor.ERROR%0A                + %22You aren't allowed to use levers or buttons in %22%0A                + MsgColor.ERROR_HILIGHT + plot.getName() + MsgColor.ERROR%0A                + %22.%22);%0A        event.setCancelled(true);%0A    %7D%0A%7D%0A

Handle player plot button/lever interactions