Good idea but now even when I change the config.yml from my /plugins/cheese directory to 2 then it is still on a 5 second cooldown EDIT:Nevermind...
There's no errors or anything but I think COOLDOWN_TIME is returning null because you can spam lightning ingame. I also fixed the default to be...
I don't understand...In past I don't remember stuff like this :| How would I pass it a reference?
I did all that but I still have public int COOLDOWN_TIME = Cheese.COOLDOWN_TIME; telling me that it is static and that the declaration thing in my...
So it initializes after the config? I thought :| I can see why it won't work but I don't know how to make it work EDIT by Moderator: merged...
I'm not :| I'm thinking maybe I could do this: Main class(Cheese.java) public void onEnable(){ FileConfiguration config =...
I don't know how to, I'm setting it as a final int but it's in a different class so I'm not sure what's happening because it's still initializing...
But I set it to final so shouldn't it load last then?
I tried public final int COOLDOWN_TIME = getConfig().getInt("LCooldown", 5); I don't know why but it still doesn't work...I will post error log?...
What's the command that's working?
This is really annoying me because I can't get it to work...I have this in my main class" public void onEnable(){ FileConfiguration config =...
Maybe this can help: http://forums.bukkit.org/threads/solved-hashmap-cooldown-issues.92728/
Testing now... Edit: Oh god I love you thanks so much!
Yeah i made that comment before I think
I removed the one between these Player p = evt.getPlayer(); if (p.hasPermission("cheese.hoe")){
Sorry, I'm sleepy... When I remove it, using the gold hoe does nothing (sends no message to player, console or strikes lightning)
I tried but it didn't work so I put it back
still no luck I will post full class just in case :| [syntax=java ]package com.github.Turtlegasm; import java.util.HashMap; import...
I had this working a while back but had to go back to an old backup because i'm an idiot but now I can't remember how it worked before...It's not...
I saw this in another help thread and tried to adapt it for my plugin but i get an error on this line when I attempt to use the hoe ability:...
Separate names with a comma.