Noviets submitted a new resource:
Vote - Start a Yes/No vote
Read more about this resource...
Vote [Unmaintained]
Discussion in 'Plugin Support' started by Noviets, Jan 31, 2016.
-
-
dont write result
dont work togetter betterchat
Last edited by a moderator: Jan 31, 2016 -
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"));
Last edited by a moderator: Feb 1, 2016 -
What are you trying to accomplish? -
Wulf Community Admin
@Noviets, noticed a few messages that aren't localized that I overlooked; you should localize them.
-
-
(Sorry for my english) -
Wulf Community Admin
-
-
-
Wulf Community Admin
-
I'll update it right now. -
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 -
-
hi Noviets,
can you make a player permission for vote kick?
greetings,
kpl35mm-nl -
Did you want to restrict starting an AutoResult vote to a separate permission, or the voting part of it? -
yes so that they can only start a kick vote if I am not online
sorry for the late respons
-
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. -