diff --git a/src/main/java/com/sk89q/worldguard/bukkit/RegionQueryUtil.java b/src/main/java/com/sk89q/worldguard/bukkit/RegionQueryUtil.java index ffadb2b9..98e88ce4 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/RegionQueryUtil.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/RegionQueryUtil.java @@ -66,7 +66,6 @@ public static boolean isInvincible(WorldGuardPlugin plugin, Player player, } public static Boolean isAllowedInvinciblity(WorldGuardPlugin plugin, Player player) { - Location loc = player.getLocation(); World world = player.getWorld(); FlagStateManager.PlayerFlagState state = plugin.getFlagStateManager().getState(player); Vector vec = new Vector(state.lastInvincibleX, state.lastInvincibleY, state.lastInvincibleZ); diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 3b0b1a15..45bb91b7 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -67,7 +67,6 @@ import com.sk89q.worldguard.blacklist.events.ItemUseBlacklistEvent; import com.sk89q.worldguard.protection.ApplicableRegionSet; import com.sk89q.worldguard.protection.flags.DefaultFlag; -import com.sk89q.worldguard.protection.flags.StateFlag; import com.sk89q.worldguard.protection.managers.RegionManager; /** diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index 3a582932..7bb52566 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -38,7 +38,6 @@ import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerBedEnterEvent; import org.bukkit.event.player.PlayerBucketEmptyEvent; -import org.bukkit.event.player.PlayerBucketEvent; import org.bukkit.event.player.PlayerBucketFillEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerDropItemEvent; @@ -46,7 +45,6 @@ import org.bukkit.event.player.PlayerItemHeldEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerListener; -import org.bukkit.event.player.PlayerLoginEvent; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.player.PlayerPickupItemEvent; import org.bukkit.event.player.PlayerQuitEvent; diff --git a/src/test/java/com/sk89q/worldguard/protection/ApplicableRegionSetTest.java b/src/test/java/com/sk89q/worldguard/protection/ApplicableRegionSetTest.java index 15d1bdef..dac77261 100644 --- a/src/test/java/com/sk89q/worldguard/protection/ApplicableRegionSetTest.java +++ b/src/test/java/com/sk89q/worldguard/protection/ApplicableRegionSetTest.java @@ -23,22 +23,9 @@ import com.sk89q.worldguard.protection.flags.DefaultFlag; import com.sk89q.worldguard.protection.flags.StateFlag; import com.sk89q.worldguard.protection.flags.StringFlag; -import com.sk89q.worldguard.protection.managers.FlatRegionManager; -import com.sk89q.worldguard.protection.managers.RegionManager; -import com.sk89q.worldguard.protection.regions.GlobalProtectedRegion; import com.sk89q.worldguard.protection.regions.ProtectedRegion; -import com.sk89q.worldguard.protection.regions.ProtectedPolygonalRegion; -import com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion; -import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; -import com.sk89q.worldedit.BlockVector; -import com.sk89q.worldedit.BlockVector2D; -import com.sk89q.worldedit.Vector; -import com.sk89q.worldguard.TestPlayer; -import com.sk89q.worldguard.domains.DefaultDomain; -import java.util.ArrayList; -import java.util.HashSet; public class ApplicableRegionSetTest { @@ -351,7 +338,6 @@ public void testPriorityDisjointMembershipAndBuildDenyFlag() { @Test public void testNoGlobalRegionDefaultBuild() { MockApplicableRegionSet mock = new MockApplicableRegionSet(); - ProtectedRegion region; LocalPlayer member = mock.createPlayer(); LocalPlayer nonMember = mock.createPlayer(); @@ -364,9 +350,8 @@ public void testNoGlobalRegionDefaultBuild() { @Test public void testGlobalRegionDefaultBuild() { MockApplicableRegionSet mock = new MockApplicableRegionSet(); - ProtectedRegion region; - - region = mock.global(); + @SuppressWarnings("unused") + ProtectedRegion region = mock.global(); LocalPlayer member = mock.createPlayer(); LocalPlayer nonMember = mock.createPlayer();