Examples of openInventory()


Examples of org.bukkit.entity.Player.openInventory()

                event.setCancelled(true);
                if (fake) {
                    this.plugin.chestFakeOpen(player.getName());
                    player.sendMessage(ChatColor.AQUA + "[VNP] Opening chest silently. Can not edit.");
                }
                player.openInventory(inventory);
                return;
            }
        }
        if (this.plugin.getManager().isVanished(player) && VanishPerms.canNotInteract(player)) {
            event.setCancelled(true);
View Full Code Here

Examples of org.bukkit.entity.Player.openInventory()

                    if(itemID == Material.LAVA_BUCKET && !cookingPotDestroyBuckets)
                        player.getInventory().addItem(new ItemStack(Material.BUCKET, 1));
                    p.print("mech.cook.add-fuel");
                    event.setCancelled(true);
                } else if (cookingPotSignOpen) {
                    player.openInventory(((Chest) cb.getState()).getBlockInventory());
                    event.setCancelled(true);
                }
            }

            if(sign.hasChanged())
View Full Code Here

Examples of org.bukkit.entity.Player.openInventory()

        }

        if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock().getType() == org.bukkit.Material.ENDER_CHEST) {
            if (OpenInv.hasPermission(player, Permissions.PERM_SILENT) && OpenInv.GetPlayerSilentChestStatus(player.getName())) {
                event.setCancelled(true);
                player.openInventory(player.getEnderChest());
            }
        }

        if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.getClickedBlock().getState() instanceof Chest) {
            boolean silentchest = false;
View Full Code Here

Examples of org.bukkit.entity.Player.openInventory()

        if (inv instanceof DoubleChestInventory)
          newinv = Bukkit.getServer().createInventory(player, 54, "Large Chest");
        else newinv = Bukkit.getServer().createInventory(player, inv.getType());
        newinv.setContents(inv.getContents());

        player.openInventory(newinv);
        event.setCancelled(true); return;
      }
    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.