@EventHandler public void <anyname>(EntityDamageByEntityEvent e) { DamageCause cause = e.getCause(); } will work better for that. It returns...
RainoBoy is right, opening the connection each time would introduce more lag, especially if you need to run multiple queries at that time.
That's right, I have all the methods for loading, saving etc.. The issue is getting values from the FileConfiguration. AngryNerd, I have looked...
Hey guys, Is there a simple way to set values in a Yaml file, for example, I have a file "spam.yml" that I wish to set values in within my...
Well, either e.getPlayer(); is returning null causing an issue getting the name (in which case you could test by sticking: if(p == null) {...
what error do you get then? Either way, you can't compare a boolean with a double, so if plocx is a boolean, you have to replace it.
which line is 125? I will guess it is e.setJoinMessage(null); as everything else looks fine if you have the port, user and passy all set up fine
Where is plocx initiated? Also, it means what it says at the line: if( config.getDouble("Parkour.block.one.x") < plocx <...
Could you post the code in the class BanCheck around the line 125, so if it's within a method, the whole method and any related code.
Anyone got any ideas, I've changed it to the following: public static boolean fire(Player player) { if (player.hasPermission(new...
Can you add the error code you get? It would be more helpful if we knew where the problem is. As you get it every time you try to connect, perhaps...
We need to see the code at the class checkPad and whenPlayerMoves (specifically lines 49 and 25 respectively)
This might be of help to you: http://jd.bukkit.org/rb/apidocs/index.html?org/bukkit/scheduler/BukkitScheduler.html
Hey guys, I have been working on a fun simple command that allows a user to set fire to another player and their surrounding area: Code to set...
Thanks, sorry for taking so long to reply, I got no alerts for some reason :/. But yeah thanks a lot, I was getting concerned about it, and...
Hey guys, Is there a way I could make a free testing server on my computer for testing a plugin that I have designed that implements a MySQL...
I'm not sure why the code I offered doesn't work, the only suggestion I could give is make sure you didn't make any little mistakes that would go...
If you want to stop overwriting your config file, this is what I use: protected static File configFile = new File(getDataFolder(), "config.yml");...
Is there a way to end a cooldown early, say if an admin uses a command? If there isn't it would be awesome if you could add a method to do just...
What event is it that you are calling .getPlayer() for? I.e. is it PlayerJoinEvent, EntityDamageEntityEvent etc. EDIT: Are you getting any...
Separate names with a comma.