Package org.bukkit

Examples of org.bukkit.World.dropItem()


        stack = ItemUtil.makeItemValid(stack);
        if(context.hasFlag('a'))
            stack.setAmount(stack.getAmount() * context.getFlagInteger('a', 1));

        world.dropItem(new Location(world, context.getInteger(1), context.getInteger(2), context.getInteger(3)), stack);

        if(!context.hasFlag('s'))
            sender.sendMessage(ChatColor.YELLOW + "Spawned CommandItem " + ChatColor.BLUE + def.getName() + ChatColor.YELLOW + " at " + new Location(world, context.getInteger(1), context.getInteger(2), context.getInteger(3)).toString());
    }

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.