Xacero Wow that worked xD I tried xTrollxDudex 's suggestion before he suggested it too. Thanks guys!
Xacero As of the code posted above, it is this line: if (item.getType() == Material.FISHING_ROD) { But from your snippet it is: if...
Xacero This is what the entire method is, without some brackets and other unrelevant things. @SuppressWarnings("deprecation") @EventHandler...
xTrollxDudex Same thing is happening like the other method that Xacero showed me. It's just a nullpointer that spams everytime I move :/
Xacero 22:45:39 [SEVERE] Could not pass event PlayerMoveEvent to MasterMine v1.0 org.bukkit.event.EventException at...
xTrollxDudex lol my copy and pasting messed up, its fixed now
Xacero Hmm.. for some reason I get null errors on "if(items[w].getTypeId()== Item.WOOD_SPADE.id)" I am however changing the item to a fishing rod...
Xacero This has what i'm trying to do, and i'm calling it on a player move event. player.getInventory() .removeItem(new...
So, i'm not sure if it's a bug or not, but whenever you try to remove a tool from a player, it doesn't work. My first guess was because of its...
Jogy34 I would try using reflection, but like you said it can get really sketchy. I wanted to create the item so I didn't have to make an...
What I mean by this is, is there any way I can add a custom material to the Material.<whatever> list? I would think that you would have to extend...
Trevor1134 This is how I did it with Items. You may have to play around with it. And clears drops in ALL worlds. for (World w :...
Trevor1134 I have the code, but have you tried to do it yourself?
Connor2weirdness I figured out my problem. There was a cancel in the InventoryOpenEvent in another class that I had.
Connor2weirdness This is what I have my code as. I think it is something like what yours does. Anyways, for me it only works when someone is in...
Separate names with a comma.