block.setData((byte) 15), where 'block' is the fire block.
Stop spamming and delete all your posts please. Go post in the Offtopic forum if you feel like spamming.
If you really need it, you can delay your check of the event by 1 tick, using a scheduled task. But you should not really do that, that's what...
this will replace all bads word in msg with the censored variant, using your hashmap (called filter here): HashMap<String,String> filter =...
That's a big question, so I'll leave it up to you to read the wiki article: http://wiki.bukkit.org/Introduction_to_the_New_Configuration
You need to provide something to replace %RED% with, in this case ChatColor.RED. if (msg.startsWith("%RED%")) {//remove this if statement if you...
I read in the wiki that setting the fire's data value to 15 makes it eternal, but i have never tested it.
Casting does not round, but floor the value. That.
take a look at the javadocs : http://jd.bukkit.org/doxygen/d9/da1/classorg_1_1bukkit_1_1inventory_1_1ItemStack.html you have to use new...
Very inefficient and completely useless. I'd simply unban a player if the ban peroid expired when the player tries to log in.
(int) spawnloc.getX() is equivalent to spawnloc.getBlockX(). You might want to use (int) Math.round(spawnloc.getX()).
location.getX(), getY() and getZ()
Time is measured in ticks (1/20 second). 1000 ticks is one minecraft hour, 24000 ticks is one minecraft day which starts at 0 ticks = 6:00 am....
short version of your code: if (x != 1) x = 1;
The only way I can think of a null pointer exception being caused directly by this line: ipfilter = MySQL.query("SELECT * FROM leden WHERE naam =...
1. You should not start two threads for the same issue. 2. I posted the answer on your other thread.
Try this: MaterialData mat = Material.getMaterial(stored.type).getNewData(stored.data); if (mat instanceof Directional) { //has a direction, i.e....
Velocity is a vector, and can't be compared to an integer. You first have to get it's length: if (vehicle instanceof Minecart &&...
You use the wrong method. Just take a look at Bukkit's javadocs:...
Just look at your code again: int time = 0; (repeating task here)// time can be anything after this if (time == world.getTime()) {//if true, time...
Separate names with a comma.