cast event.getWhoClicked() to player and get their exp using getExp(); if it's not at the required level, prevent them from grabbing from the...
*must be serialized before they can be saved iirc. There's custom methods out there to do so - or if you just need to compare, you can save the...
Just use this in your InventoryClickEvent. if (ev.getView().getType() == InventoryType.ANVIL){ //get rawslots here to modify....
Like I said, if you want it to persist on restart you'll need to save it, and locations aren't serializable. You'll either need to convert the...
You can store the location to a hashmap when the command is used. just use a string as the key. Then use if events on the block, so if it's a...
Thanks for posting that again:) , I actually used that to get to where I am now, I saw you'd posted it in another thread. The thing is, it creates...
Pull Requests... like open up the craftbukkit source for changes/compiling/testing.
Do you get any kind of errors in your console?
I think he knows perfectly well what his workflow is. There's a difference between spoon-feeding and being helpful. You're doing neither. You...
I'm probably overlooking something severely stupid, but it's my first attempt at working on CraftBukkit. I've forked it and tried importing into...
Post what you've got, and then we'll have a chance of helping. :)
Any really in this case, but I suppose "officially" it's preferable to use yaml, and use the methods in the link fireblast provided for...
Yeah, already went that route, problem was it got tricky if the tnt was 1 block down and next to the redstone, too much overhead. Ended up doing a...
Your yml's layout will completely make or break your plug-in, it's very important to get right, so don't get snarky. Turns out it is just that...
*doesn't. It doesn't work. and that doesn't tell us anything. You need to say WHY it doesn't work. What error are you getting? I believe you...
I didn't repeatedly change his code, nor am I "making him run around in circles", he shouldn't be using the playerInteractEvent, this is more...
@EventListener public void openinv(InventoryOpenEvent ev){ Inventory einv = ev.getInventory();...
He used InventoryOpenEvent there because it works better for what he needs. From there he can check inventory type, if it's Enchantment he can...
There's always going to be some adaptation needed when someone gives you a code snippet. You'll need to understand what a method is actually doing...
:| Please stop copy-pasting. you need to: For what you want, you need to do this: 1. Check if it's right-click 2. Check if the type of the block...
Separate names with a comma.