how to run a command only after a certain number of players enter the command

Discussion in 'Bukkit Help' started by PurpleWumbat, Jul 18, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    PurpleWumbat

    So basically I'm trying to code a plugin that changes a persons prefix to king only after 5 people run the command /king, I got most of it done but I cant figure out how to make it so 5 people have to enter the command before it runs, any ideas?
     
  2. Offline

    Rayzr522

    I think I know how to do what you want to do, but first let me confirm: are you trying to make a command where 5 people have to "nominate" a person to be king?
     
  3. Offline

    thapengwin

    Add HashMaps with player names and times they have been nominated, and once the command has been run the 5th time, add the prefix.
     
  4. Offline

    PurpleWumbat

    how do you make hashmap of how many times that player has been nominated?

    Nvm, I used my friend google and found out, thank you for putting me on the right track though.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 21, 2016
Thread Status:
Not open for further replies.

Share This Page