static void ProcessVote(Player p, string message) { switch (message) { case "1": voted1++; p.ClearChat(); p.SendMessage("&f- &SYou voted for &b" + option1 + "."); Server.s.Log(p.name + " voted for " + option1 + "."); break; case "2": voted2++; p.ClearChat(); p.SendMessage("&f- &SYou voted for &b" + option2 + "."); Server.s.Log(p.name + " voted for " + option2 + "."); break; case "3": if (optionCount > 2) { voted3++; p.ClearChat(); p.SendMessage("&f- &SYou voted for &b" + option3 + "."); Server.s.Log(p.name + " voted for " + option3 + "."); } else { goto default; } break; default: if (optionCount == 2) { p.SendMessage("&f- &SInvalid option! Type either /1 or /2."); } else { p.SendMessage("&f- &SInvalid option! Type either /1, /2 or /3."); } break; } }