Replacing the faulty function with dst.getWorld() fixed it. Thanks for the help!
I have the following code: if (dst != null) { double x = dst.getLocation().getX(); double y = dst.getLocation().getY(); double z =...
And when I call it it won't instantiate it, rather call the existing object. That makes sense. Thank you!
Thank you very much for the prompt reply. This will definitely work and it will save me a lot of hassle! EDIT: One last question (hehe): How do I...
That actually does makes sense, but it rises another question: How can I get the class of the module? I am currently loading it in the main...
Hello everyone! I am currently working on a plugin suite which consists of a main module and other modules like authentication or land...
Tarestudio The problem persists and I've tried many other ways to work around it, but I just can't. I'll figure some other way to do it.
Tarestudio Nope, still this error: [spoiler] EDIT: The method worked just fine before I added the HashMap, I had a private int and it worked, so...
So I am trying to improve the functionality of my plugin by adding a fully customizable cooldown timer for each tool, but whenever the cooldown...
public String nickname = player.getDisplayName() Or, you could go really complicated with HashMaps and events.
for(ItemStack item : drops) { if(item.getType() == Material.MUSHROOM_SOUP) { continue; } else { item.remove(); } }...
CaLxCyMru Exactly.
CaLxCyMru You could check all the blocks next to the target block X-1, X+1, Z-1, Z+1, Y-1, Y+1
What you could do (I'm not sure if this is what you want) is get the target block's location, add one block to the Y axis, check if it's air and...
lol768 Yes, my file is an Alpha. Thanks for the answer!
Separate names with a comma.