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 =...
https://github.com/CraftThatBlock/CTBAPI/blob/master/src/com/craftthatblock/ctbapi/CTBAPI.java#L183-L207
Yeah, I think I will make Bash make a file under /SwordPVP/runningserver/${port}.txt and put the server id in it, where ${port} is the server port...
So if I start the server with like java -Dcom.swordpvp.serverid=server1 I could use String s = System.getProperty("com.swordpvp.serverid"); And s...
I want to set my own, and they get their values.
Personal. But Bash to Java would be much much easier. Also, Noob question: Can Bukkit/Java read a file like /hey.txt, which is not inside the...
Well, if they's any ways to pass something from a bash script to Java, I'd like to know. I could easily just use PHP and MySQL, but I rather just...
I could change the code, but thats exactly what I don't want to do :)
I can't start up the server using additional arguments.
Separate names with a comma.