A way to do this?

Discussion in 'Plugin Development' started by Fhbgsdhkfbl, Jun 5, 2016.

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

    Fhbgsdhkfbl

    Hey bukkit forums,

    I guess you can call it a minigame, it's for a server that I'm developer for,

    but, I have a simple question, what would the easiest way to make a command such as /owl host,
    and it'll activate a boolean or something, so when a player does /owl join, it'll put them into a list, a HashMap or HashSet of some sorts.
     
  2. Offline

    Zombie_Striker

    @Fhbgsdhkfbl
    I don't understand how you can make doing those things complicated.
    1. Check if the command is equal to "owl"
    2. Check if there are any args, and if so, check if the first arg is equal to Host
    3. Set a boolean equal to true.
    4. If the arg is equal to Join.
    5. Check if the boolean is true. If so, add them to a list/hashmap.
     
Thread Status:
Not open for further replies.

Share This Page