mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-30 22:44:07 +01:00
Fixed warnings.
This commit is contained in:
parent
ce49ca0998
commit
5acd3a7f6c
@ -66,7 +66,6 @@ public static boolean isInvincible(WorldGuardPlugin plugin, Player player,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Boolean isAllowedInvinciblity(WorldGuardPlugin plugin, Player player) {
|
public static Boolean isAllowedInvinciblity(WorldGuardPlugin plugin, Player player) {
|
||||||
Location loc = player.getLocation();
|
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
FlagStateManager.PlayerFlagState state = plugin.getFlagStateManager().getState(player);
|
FlagStateManager.PlayerFlagState state = plugin.getFlagStateManager().getState(player);
|
||||||
Vector vec = new Vector(state.lastInvincibleX, state.lastInvincibleY, state.lastInvincibleZ);
|
Vector vec = new Vector(state.lastInvincibleX, state.lastInvincibleY, state.lastInvincibleZ);
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
import com.sk89q.worldguard.blacklist.events.ItemUseBlacklistEvent;
|
import com.sk89q.worldguard.blacklist.events.ItemUseBlacklistEvent;
|
||||||
import com.sk89q.worldguard.protection.ApplicableRegionSet;
|
import com.sk89q.worldguard.protection.ApplicableRegionSet;
|
||||||
import com.sk89q.worldguard.protection.flags.DefaultFlag;
|
import com.sk89q.worldguard.protection.flags.DefaultFlag;
|
||||||
import com.sk89q.worldguard.protection.flags.StateFlag;
|
|
||||||
import com.sk89q.worldguard.protection.managers.RegionManager;
|
import com.sk89q.worldguard.protection.managers.RegionManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.player.PlayerBedEnterEvent;
|
import org.bukkit.event.player.PlayerBedEnterEvent;
|
||||||
import org.bukkit.event.player.PlayerBucketEmptyEvent;
|
import org.bukkit.event.player.PlayerBucketEmptyEvent;
|
||||||
import org.bukkit.event.player.PlayerBucketEvent;
|
|
||||||
import org.bukkit.event.player.PlayerBucketFillEvent;
|
import org.bukkit.event.player.PlayerBucketFillEvent;
|
||||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||||
import org.bukkit.event.player.PlayerDropItemEvent;
|
import org.bukkit.event.player.PlayerDropItemEvent;
|
||||||
@ -46,7 +45,6 @@
|
|||||||
import org.bukkit.event.player.PlayerItemHeldEvent;
|
import org.bukkit.event.player.PlayerItemHeldEvent;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
import org.bukkit.event.player.PlayerListener;
|
import org.bukkit.event.player.PlayerListener;
|
||||||
import org.bukkit.event.player.PlayerLoginEvent;
|
|
||||||
import org.bukkit.event.player.PlayerMoveEvent;
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
import org.bukkit.event.player.PlayerPickupItemEvent;
|
import org.bukkit.event.player.PlayerPickupItemEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
@ -23,22 +23,9 @@
|
|||||||
import com.sk89q.worldguard.protection.flags.DefaultFlag;
|
import com.sk89q.worldguard.protection.flags.DefaultFlag;
|
||||||
import com.sk89q.worldguard.protection.flags.StateFlag;
|
import com.sk89q.worldguard.protection.flags.StateFlag;
|
||||||
import com.sk89q.worldguard.protection.flags.StringFlag;
|
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.ProtectedRegion;
|
||||||
import com.sk89q.worldguard.protection.regions.ProtectedPolygonalRegion;
|
|
||||||
import com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion;
|
|
||||||
import org.junit.Before;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import static org.junit.Assert.*;
|
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 {
|
public class ApplicableRegionSetTest {
|
||||||
|
|
||||||
@ -351,7 +338,6 @@ public void testPriorityDisjointMembershipAndBuildDenyFlag() {
|
|||||||
@Test
|
@Test
|
||||||
public void testNoGlobalRegionDefaultBuild() {
|
public void testNoGlobalRegionDefaultBuild() {
|
||||||
MockApplicableRegionSet mock = new MockApplicableRegionSet();
|
MockApplicableRegionSet mock = new MockApplicableRegionSet();
|
||||||
ProtectedRegion region;
|
|
||||||
|
|
||||||
LocalPlayer member = mock.createPlayer();
|
LocalPlayer member = mock.createPlayer();
|
||||||
LocalPlayer nonMember = mock.createPlayer();
|
LocalPlayer nonMember = mock.createPlayer();
|
||||||
@ -364,9 +350,8 @@ public void testNoGlobalRegionDefaultBuild() {
|
|||||||
@Test
|
@Test
|
||||||
public void testGlobalRegionDefaultBuild() {
|
public void testGlobalRegionDefaultBuild() {
|
||||||
MockApplicableRegionSet mock = new MockApplicableRegionSet();
|
MockApplicableRegionSet mock = new MockApplicableRegionSet();
|
||||||
ProtectedRegion region;
|
@SuppressWarnings("unused")
|
||||||
|
ProtectedRegion region = mock.global();
|
||||||
region = mock.global();
|
|
||||||
|
|
||||||
LocalPlayer member = mock.createPlayer();
|
LocalPlayer member = mock.createPlayer();
|
||||||
LocalPlayer nonMember = mock.createPlayer();
|
LocalPlayer nonMember = mock.createPlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user