If you're lazy/have too many commands, you can use a system similar to this:...
DeadlyScone, I've had to deal with the lack of mutable getDrops() before. Wasn't fun. Ended up cancelling the event, setting the block to air,...
I notice you have some weird character (), I'm going to assume that is a tab, and that the rest of the config is properly formatted. Remember,...
Other than 90% of that code being totally redundant, your error lies in line 50 if the first class. getConfigurationSection is probably returning...
I hope listening to this is on PlayerMoveEvent is for debugging only... A good practice would be to load everything you need from the config into...
Firstly, forgive me if I repeat something someone else has said, don't have the time to read through the whole thread. I assume it will only ever...
That's correct, getDrops() won't be of any use here. Instead you have to cancel the block break event and set the type to air, that's the only way...
You sure the min is actually larger than the max? Edit: 2fast5me adam753
You want the LOWEST priority. Read the documentation here for a proper explanation.
Easiest way would be to do it manually. You could also listen to chat packets, not sure how you would tell a regular chat packet apart from the...
BetaNyan Simply check if the item is not Air or null before running the rest of the code. That would fix at least one error that is [potentially]...
new ItemStack(Material, Amount)*
WorldGuard has an API, use it. And bukkit's location class has a method called distanceSquared. Also, instead of getting the region's location,...
Separate names with a comma.