public override void Use(Player p, string message, CommandData data) { if (message.Length > 0) { ChatModes.MessageAdmins(p, message); return; } p.adminchat = !p.adminchat; if (p.adminchat) { p.Message("All messages will now be sent to Admins only"); } else { p.Message("Admin chat turned off"); } }
public override void Use(Player p, string message) { if (message != "") { ChatModes.MessageAdmins(p, message); return; } p.adminchat = !p.adminchat; if (p.adminchat) { Player.Message(p, "All messages will now be sent to Admins only"); } else { Player.Message(p, "Admin chat turned off"); } }