1) I'd use prepared statements when setting up a query. 2) You should do if(res.next()) THEN check it's contents. 3) As others have said, I'd use...
Yes sir, I've placed that code in multiple registered listeners with no success.
Hey guys, I set up two simple listeners, and they don't seem to be firing at all. Any ideas? @EventHandler (priority = EventPriority.MONITOR)...
Why wouldn't you just while(true) then? First off, if you are just trying to make someone fly normally, please be aware there is the setFlying...
If you look here, you'll see that the PlayerInteractEvent covers a pretty wide range of events. For example, if you step on a pressure plate,...
Sure, post the entire event handler.
To my knowledge, it's not possible to just set a property on a block to make it act like a chest. I assume you'd have to keep track of all of the...
Depending on the context, it is very possible for e.getItem() to be null.
Take a look at this method: http://jd.bukkit.org/rb/apidocs/org/bukkit/entity/Player.html#setFlySpeed(float)
:| Try following these instructions and see if you can get Maven installed.
Have you ever compiled a project with Maven?
I figured it out a while ago, so here is how I get it to work: In your pom.xml, add this to your <plugins> tag: <plugin>...
If you look here you can see the only circumstances a world will not unload.
Of course I am using hidePlayer. ;) But even though PlayerA can't see PlayerB, the server is too dumb to know that PlayerA should be able to place...
Hey guys, trying to make it so spectators of our game are truly invisible. I am trying to make it so you can place blocks even if a spectator...
You can do the max check yourself if you want to, since you're iterating over the entire thing anyways. ArrayList<Integer> numbers = new...
That's fine, I'd like to see him defend himself. Edit: Obviously not hard evidence, as I am not giving everyone access to a repo for one crappy...
No worries :)
It seems that your Maven repo is down. Any ETA on when it will be back up?
You literally copied this from our closed sourced plugin that was leaked. Great job bud. Edit: Could a mod please lock this BS thread of plagiarism.
Separate names with a comma.