Package org.bukkit.entity

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


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

    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

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.