case "voting": {
"PlayerOpenNewTabWorkingSystem240000000" }
return true;
|
How would I make it so a player can only do a certain command once every 24 hours?
I need this for my voting system. Thanks.
case "voting": {
"PlayerOpenNewTabWorkingSystem240000000" }
return true;
This is all wrong
why do you have brackets in something that doesn't need it?
try this maybe? i don't this this will work but, it's worth a shotCode:case "voting": player.getPackets().sendOpenURL("Url here"); timer = 65000;//24 hrs return true;
Edit: add this in your commands.java
underCode:private static int timer;
Code:private static BufferedWriter writer;
Didn't work :/
I think the bork command has a timer on it, try copying stuff from it.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |