Skip to content

Instantly share code, notes, and snippets.

@mstefarov
Forked from MrBluePotato/gist:8508017
Last active January 3, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstefarov/8508192 to your computer and use it in GitHub Desktop.
Save mstefarov/8508192 to your computer and use it in GitHub Desktop.
public static void takeVote()
{
World[] voteWorlds = PropHuntWorlds.OrderBy(x => randWorld.Next())
.Take(3)
.ToArray();
NewVote();
Server.Players.Message("&S--------------------------------------------------------------");
Server.Players.Message("Vote for the next map!");
Server.Players.Message("&S/Vote &c1&S for {0}&S, &c2&S for {1}&S, and &c3&S for {2}",
voteWorlds[0].ClassyName, voteWorlds[1].ClassyName, voteWorlds[2].ClassyName);
Server.Players.Message("&S--------------------------------------------------------------");
VoteIsOn = true;
Scheduler.NewTask((task) => VoteCheck())
.RunOnce(TimeSpan.FromSeconds(60));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment