VoteCommand

Discussion in 'Plugin Development' started by Faus, Dec 2, 2018.

Thread Status:
Not open for further replies.
  1. Hi.
    i was guessing if someone can help me whit VoteCommand , im trying to make a system whit that,
    simply i want players to do /votekoth , and when it reaches like 15 votes the console/server will run /koth start koth. I tryied but im stupid :p. Could some one tell me how to do that (step by step pls :-:)
     
  2. Offline

    CraftCreeper6

    @Faus
    Get when a user types that command using the onCommand method, have an integer count in a global scope and increment this counter every time the command is run. Each time a player types the command, check - after you increment the counter - if the counter is larger or equal to 15. If so, Bukkit#dispatchCommand(Runner, "koth start koth")
     
  3. What? im not a pluginer could u please do that easily whit some free plugins or what?
    like i rl tryied i spent hours but i dnt understand like i said im dumb
     
  4. Offline

    CraftCreeper6

    @Faus
    If you want to request a plugin, post in the plugin requests section of the forum.
     
Thread Status:
Not open for further replies.

Share This Page