mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-16 20:31:20 +01:00
updated the protection and stuff
This commit is contained in:
parent
80da8833ef
commit
6318716511
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user