Examples of updateInventory()


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

                player.teleport(player.getWorld().getHighestBlockAt(spawnLocation).getLocation());
            }
        }

        player.setItemInHand(new ItemStack(getChimaeraWing(player.getItemInHand().getAmount() - Config.getInstance().getChimaeraUseCost())));
        player.updateInventory();
        mcMMOPlayer.actualizeChimeraWingLastUse();
        mcMMOPlayer.setTeleportCommenceLocation(null);

        if (Config.getInstance().getStatsTrackingEnabled()) {
            MetricsManager.chimeraWingUsed();
View Full Code Here

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

        Bukkit.getScheduler().scheduleSyncDelayedTask(RecipeManager.plugin, new Runnable()
        {
          @Override
          public void run()
          {
            player.updateInventory();
          }
        });
      }
    }
    catch(Exception e)
View Full Code Here

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

    if (event != null) {     
      // dispatch event
      scs.callShowCaseEvent(event);
     
      // have to
      player.updateInventory();
     
      // send the error message
      if (event.isCancelled() && event.getCause() != null) {
        // an error occurred
        scs.msgPlayer(player, event.getCause().getMessage());
View Full Code Here

Examples of org.getspout.spout.player.SpoutCraftPlayer.updateInventory()

                  } else {
                    item.setAmount(item.getAmount() - 1);
                  }
                }
                player.playSound(player.getLocation(), Sound.DIG_STONE, 1.0F, 0.7936508F);
                player.updateInventory();
                // Now we have placed a nice custom block! We should check its rotation and rotate the base block!
                if (cb.canRotate()) {
                  if (cb.canMirroredRotate() && mirrored) {
                    if (block.getType() == Material.LEVER || block.getType() == Material.TORCH || block.getType() == Material.STONE_BUTTON || block.getType() == Material.WOOD_BUTTON) {
                      // The below Types need a slightly different data value to assign correct positioning.
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.