Package org.bukkit.entity

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


          IdentifyItemEvent iie = new IdentifyItemEvent(tool);
          plugin.getServer().getPluginManager().callEvent(iie);
          if (iie.isCancelled()) {
            p.sendMessage(ChatColor.RED
                + "You are unable to identify right now.");
            p.closeInventory();
            e.setUseItemInHand(Result.DENY);
            e.setCancelled(true);
            return;
          }
          pi.setItemInHand(null);
View Full Code Here


          p.sendMessage(ChatColor.GREEN
              + "You have identified an item!");
          p.updateInventory();
          e.setUseItemInHand(Result.DENY);
          e.setCancelled(true);
          p.closeInventory();
          return;
        }
        p.sendMessage(ChatColor.RED + "You have no items to identify.");
        p.closeInventory();
        e.setUseItemInHand(Result.DENY);
View Full Code Here

          e.setCancelled(true);
          p.closeInventory();
          return;
        }
        p.sendMessage(ChatColor.RED + "You have no items to identify.");
        p.closeInventory();
        e.setUseItemInHand(Result.DENY);
        e.setCancelled(true);
        return;
      }
    }
View Full Code Here

      case HEAL: PlayerUtil.heal(player); break;
      case FEED: PlayerUtil.feed(player); break;

      case TELEPORT_PLAYER:
        player.closeInventory();
        showPlayerTeleportMenu(player);
        break;
    }
  }
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.