Try if(p.getIteminHand() !=null && p.getIteminHand().getType() != Material.AIR){
In the onClick, but a System.out.println("Test") and check if that outputs. Do the name in your onEnable so see if it prints.
Added reverse lookup (UUID -> Name): https://github.com/SwordPVP/MinecraftUUID Example:...
I hope they do. :)
That would be epic... but Mojang doesn't provide that yet (afaik).
My library simply gets it from Mojang, but in a simpler form factor. Making a post to api.mojang and stuff sometimes can be a bit hard, but...
<Edit by Moderator: Redacted bit url> First link.
You should be running it sync, but try it out async, see if it works fine.
What I did: Make a zombie and disguise it as a sheep or something using LibsDisguise (or whatever plugin you like the most). It will follow you,...
To expand on what ArthurMaker did, (great lib btw), you can use this code: for(Location loc : getCuboid(loc1, loc2){ Block b =...
Hey guys, CraftThatBlock here. I made a very small Minecraft username to UUID library (in PHP) with examples in Java and PHP (pull requests...
Idea: loc1 loc2 xMin = Math.min(loc1.getX, loc2.getX) xMax = Math.max(loc1.getX, loc2.getX) yMin = Math.min(loc1.getY, loc2.getY) yMax =...
Separate names with a comma.