Thread: 718 Command

Results 1 to 7 of 7
  1. #1 718 Command 
    Banned
    Join Date
    Feb 2009
    Age
    30
    Posts
    214
    Thanks given
    5
    Thanks received
    1
    Rep Power
    0
    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.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2012
    Posts
    127
    Thanks given
    6
    Thanks received
    3
    Rep Power
    12
    case "voting": {
    "PlayerOpenNewTabWorkingSystem240000000" }
    return true;
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Feb 2009
    Age
    30
    Posts
    214
    Thanks given
    5
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by skidor View Post
    case "voting": {
    "PlayerOpenNewTabWorkingSystem240000000" }
    return true;
    Lol, what...
    Reply With Quote  
     

  4. #4  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    Quote Originally Posted by skidor View Post
    case "voting": {
    "PlayerOpenNewTabWorkingSystem240000000" }
    return true;
    This is all wrong
    why do you have brackets in something that doesn't need it?



    Code:
    case "voting":
    player.getPackets().sendOpenURL("Url here");
    timer = 65000;//24 hrs
    return true;
    try this maybe? i don't this this will work but, it's worth a shot

    Edit: add this in your commands.java

    Code:
    	private static int timer;
    under

    Code:
    private static BufferedWriter writer;
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Feb 2009
    Age
    30
    Posts
    214
    Thanks given
    5
    Thanks received
    1
    Rep Power
    0
    Didn't work :/
    Reply With Quote  
     

  6. #6  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    Quote Originally Posted by WTFZ View Post
    Didn't work :/
    Hmmm, Alright hold on let me convert an older command into what you need
    i'll edit this post
    Reply With Quote  
     

  7. #7  
    Member
    Join Date
    Nov 2012
    Posts
    73
    Thanks given
    9
    Thanks received
    6
    Rep Power
    0
    I think the bork command has a timer on it, try copying stuff from it.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •