From 0c3d22f52d62db3a0e552cda51d1f3f781f4d782 Mon Sep 17 00:00:00 2001 From: sekwah41 Date: Mon, 7 Oct 2013 21:27:40 +0100 Subject: [PATCH] Removed unused imports and added a Supression warning for the oniteminteract due to the gettypeid having some sort of unused warning --- .../src/com/sekwah/advancedportals/Listeners.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Advanced Portals/src/com/sekwah/advancedportals/Listeners.java b/Advanced Portals/src/com/sekwah/advancedportals/Listeners.java index d17c6ae9..5cdfc514 100644 --- a/Advanced Portals/src/com/sekwah/advancedportals/Listeners.java +++ b/Advanced Portals/src/com/sekwah/advancedportals/Listeners.java @@ -1,7 +1,5 @@ package com.sekwah.advancedportals; -import net.minecraft.server.v1_6_R3.Item; - import org.bukkit.Material; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; @@ -20,7 +18,8 @@ public class Listeners implements Listener { - @EventHandler + @SuppressWarnings("deprecation") + @EventHandler public void oniteminteract(PlayerInteractEvent event) { // will detect if the player is using an axe so the points of a portal can be set // also any other detections such as sign interaction or basic block protection