updated the protection and stuff

This commit is contained in:
sekwah41 2015-03-27 23:24:46 +00:00
parent 80da8833ef
commit 6318716511
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
else if(args[0].toLowerCase().equals("portal") || args[0].toLowerCase().equals("portalblock")){
PlayerInventory inventory = player.getInventory();
ItemStack portalBlock = new ItemStack(Material.PORTAL);
ItemStack portalBlock = new ItemStack(Material.PORTAL, 1);
inventory.addItem(portalBlock);

View File

@ -49,7 +49,6 @@ public class PortalProtect implements Listener {
if((portal.pos1.getX() + PortalProtectionRadius) >= block.getX() && (portal.pos1.getY() + PortalProtectionRadius) >= block.getY() && (portal.pos1.getZ() + PortalProtectionRadius) >= block.getZ()){
if((portal.pos2.getX() - PortalProtectionRadius) <= block.getX() && (portal.pos2.getY() - PortalProtectionRadius) <= block.getY() && (portal.pos2.getZ() - PortalProtectionRadius) <= block.getZ()){
event.setCancelled(true);
break;