How can I open the player's inventory, as if the player pressed the E key? I tried player.openInventory(player.getInventory()); but that just...
This is my solution. If anyone can think of a better one, please let me know. @SuppressWarnings({ "rawtypes", "unchecked" }) public static void...
Is there an easy way to rename a ConfigurationSection in a YamlConfiguration? For example, I have a config like this: SectionToRename:...
For now I made my own CraftingInventory class, but if you have a better solution, please share! http://pastebin.com/mx2ubey0 I'm trying to...
All (or most, I'm not sure) classes in CraftBukkit begin with Craft, so think of CraftInventoryCustom as InventoryCustom. InventoryCustom can't be...
I tried that, the resulting inventory is still a CraftInventoryCustom type, no matter what I set that parameter to, and that can't be casted to a...
I'm trying to create the inventory without having to show it to the player.
How do I create a CraftingInventory? I want to create a CraftingInventory variable without ever having to show the inventory to the player, and I...
Okay. Is there a way to add colored wool as an ingredient to a recipe? I'm only able to add a Material. I was able to add a material and an data...
Bukkit updated the way item ids work and now I have no idea how to create items with data, like colored wool. How would I give a player red wool,...
Checking the title isn't going to be a good way for me to check for inventory equality because it can be changed in my plugin's config, and can be...
Jogy's method seems to be the best. Just checking the inventory title won't work because two different inventories can have the same title.
How can I check if two inventory objects are holding the same inventory? I tried the .equals method......
I'm planning on making a towny server and allowing vips to use worldedit. Is there a way to disallow worldediting in a specific area?
That's mostly working. The only problem I'm having is that the item isn't dropping in the right direction. Here's my code:...
Separate names with a comma.