1. Noviets submitted a new resource:

    Vote - Start a Yes/No vote

    Read more about this resource...
     
  2. Noviets updated Vote with a new update entry:

    1.0.1

     
  3. dont write result :( dont work togetter betterchat
     
    Last edited by a moderator: Jan 31, 2016
  4. Code:
    timer.Once(Convert.ToSingle(Config["VoteTimeSeconds"])+0.1f, () =>
                            {
                                if(voteYes.Count > voteNo.Count)
                                    hurt.BroadcastChat(Config["VoteEnded"].ToString().Replace("{Yes}",voteYes.Count.ToString()).Replace("{No}",voteNo.Count.ToString()).Replace("{Result}", "Yes"));
                                else
                                    hurt.BroadcastChat(Config["VoteTimeSeconds"].ToString().Replace("{Yes}",voteYes.Count.ToString()).Replace("{No}",voteNo.Count.ToString()).Replace("{Result}", "No"));
    I fixed it. It is necessary to change the "VoteTimeSeconds" on "VoteEnded"
     
    Last edited by a moderator: Feb 1, 2016
  5. That makes no sense, if the vote is now "No" you're just going to broadcast "30" to chat after it ends.
    What are you trying to accomplish?
     
  6. Wulf

    Wulf Community Admin

    @Noviets, noticed a few messages that aren't localized that I overlooked; you should localize them. ;)
     
  7. The "yes" and "no"?
     
  8. If the negative vote was more a chat deduced simply "30". If you replace "VoteTimeSeconds" on "VoteEnded", will be displayed "Voting has ended. Yes: 1 No: 5 Result: No", if not replaced, get a chat message "30", check yourself.

    (Sorry for my english)
     
  9. Wulf

    Wulf Community Admin

    If you wanted to, but I was thinking more of the VoteStarted and VoteEnded.
     
  10. That's in the config because I've never been able to change the language messages. Do you know how?
     
  11. Noviets updated Vote with a new update entry:

    1.0.2

     
  12. Wulf

    Wulf Community Admin

    Change them how? You can use string.Format or .Replace to replace any variables in the messages if that is what you are referring to.
     
  13. No not that, nevermind I was being an idiot :p
    I'll update it right now.
     
  14. Noviets updated Vote with a new update entry:

    1.0.3


    [DOUBLEPOST=1454346709][/DOUBLEPOST]Now, to do the automated result. Not sure what I would do other than check if the vote contains keywords like kick, ban, day, night, etc. Not sure what else automation would be helpful for.

    What did you have in mind?
     
    Last edited by a moderator: Feb 1, 2016
  15. Noviets updated Vote with a new update entry:

    1.0.4

     
  16. hi Noviets,

    can you make a player permission for vote kick?

    greetings,

    kpl35mm-nl
     
  17. Anyone is able to vote that are online when the vote is started. However only those with the vote.admin permission are able to start any votes.

    Did you want to restrict starting an AutoResult vote to a separate permission, or the voting part of it?
     
  18. yes so that they can only start a kick vote if I am not online :) sorry for the late respons
     
  19. Separate permissions for the following would be great:

    /vote day
    /vote night

    Another permission for

    /vote kick
    /vote ban

    This way anyone can start a vote for day or night and only admins can use the kick and ban start vote.
     
  20. Noviets updated Vote with a new update entry:

    1.0.5