Created
January 19, 2014 17:23
-
-
Save MrBluePotato/8508017 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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