No its not. use Integer.MAX_INTEGER
St3venAU am i missing the joke?
supernina99 There is, obviously. I don't understand why its that big of a deal. I'm sure the player doesn't mind changing it every 24 hours..
Kinda irrelevant, but that's pretty cool you're making a TLA/TLOK plugin. Send me a link when you finish it?
5dys This thread is over 2 years old. But, your error is: Caused by: java.lang.ClassNotFoundException: package me.test
I dont think the people above me know what they're talking about. I suggest the tutorial if you're using ubuntu:...
You might wanna change getConfig().set("Tickets" + player.getName(), 100); to getConfig().set("Tickets." + player.getName(), 100);
Necrodoom I think that's what he is trying to do..
And line 80
after the command do if(cooldown.contains(p)) { //do whatever } else { //not in cooldown }
Don't add them to the cooldown if they have the permission. Then remove the check for the permission, and after the command stuff (cmd.get)...
You can go look at a gun plugins code to see what sounds they use.
Its your getPlayer method. I can't help much more, never used sql.
Sean0402 Why don't you just not add the player to the list if they have permission? like if player has permission (cooldown perm) return;
What are these two lines? [20:06:03 WARN]: at me.macboinc1.gems.MySQL.getGems(MySQL.java:29) [20:06:03 WARN]: at...
Gnat008 Because why would he have to subtract if he didn't already remove the player?
Why don't you just remove the player from the arraylist or whatever you're using when the player is eleminated? If you don't, it'll keep giving...
.. Yeah, if the player doesn't have the permission, remove him from the cooldown. Remove the '!' and it should work.
stormneo7 I know, just saying.
This again. Don't store actual players, store their names/uuid.
Separate names with a comma.