Skip to content

Instantly share code, notes, and snippets.

@MrBluePotato
Created January 19, 2014 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MrBluePotato/8508017 to your computer and use it in GitHub Desktop.
Save MrBluePotato/8508017 to your computer and use it in GitHub Desktop.
public static void takeVote()
{
world1 = PropHuntWorlds[randWorld.Next(0, PropHuntWorlds.Count)];
world2 = PropHuntWorlds[randWorld.Next(0, PropHuntWorlds.Count)];
world3 = PropHuntWorlds[randWorld.Next(0, PropHuntWorlds.Count)];
if (world1 != world2 || world1 != world3 || world2 != world3)
{
VoteThread = new Thread(new ThreadStart(delegate
{
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}", world1.ClassyName, world2.ClassyName, world3.ClassyName);
Server.Players.Message("&S--------------------------------------------------------------");
VoteIsOn = true;
Thread.Sleep(60000);
VoteCheck();
})); VoteThread.Start();
}
else takeVote();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment