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:...
How can I drop an item from a player as if the player hit the drop item key? I don't know the location to drop the item from or how to drop the...
That looks like it'll work. Is there a reason why bukkit doesn't use the same code for the two methods instead of deprecating the one in the...
I noticed that event.setCursor() is deprecated in the InventoryClickEvent. How do I get around this to change the item on a player's cursor?
There's one problem that i ran into with that. If i want to find the name of charcoal, the .name() method just gives me "coal". I was able to...
How can I get the name of an item from a given item id/data? The only way I can think to do it is to manually make a list of all of the names, but...
Separate names with a comma.