Thread: ::reward command

Results 1 to 2 of 2
  1. #1 ::reward command 
    Registered Member
    Join Date
    May 2012
    Posts
    335
    Thanks given
    43
    Thanks received
    10
    Rep Power
    15
    I have the "reward" command but.

    how do i make it so it's something like this.


    If player typed ::vote

    c.giveitem etc

    :else if:


    ::reward

    You can only do this every 24 Hours.
    Reply With Quote  
     

  2. #2  
    Registered Member Lust's Avatar
    Join Date
    Oct 2012
    Age
    28
    Posts
    109
    Thanks given
    5
    Thanks received
    4
    Rep Power
    16
    Like?

    Code:
    if(playerCommand.equalsIgnoreCase("reward") && player.hasVoted()) {
    	c.getItems().addItem(0000, 1);
    } else {
    	c.sendMessage("You have not voted in the last 24 hours");
    }

    Some derivative of this I would assume. I'm sure there is more to it, I'm still not 100% sure what you are asking other then you want a reward command.


    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: 3
    Last Post: 09-19-2012, 03:20 PM
  2. Replies: 2
    Last Post: 05-01-2012, 09:36 AM
  3. $80 Reward -HELP-
    By Event Pk in forum Help
    Replies: 1
    Last Post: 10-23-2010, 11:39 PM
  4. 10$ reward Veng 10$ reward
    By xx k03d xx in forum Help
    Replies: 17
    Last Post: 06-08-2010, 05:13 AM
  5. Replies: 6
    Last Post: 07-20-2009, 06:50 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
  •