public override void Execute(PointBlankPlayer executor, string[] args) { if (StringComparer.InvariantCultureIgnoreCase.Compare("reloadsteam", args[0]) == 0) { SteamGroupManager.Reload(); UnturnedChat.SendMessage(executor, Translations["PointBlank_ReloadSteam"], ConsoleColor.Green); } else if (StringComparer.InvariantCultureIgnoreCase.Compare("reloadall", args[0]) == 0) { SteamGroupManager.Reload(); UnturnedServer.ReloadPlayers(); GroupManager.Reload(); UnturnedChat.SendMessage(executor, Translations["PointBlank_ReloadAll"], ConsoleColor.Green); } else if (StringComparer.InvariantCultureIgnoreCase.Compare("version", args[0]) == 0) { UnturnedChat.SendMessage(executor, string.Format(Translations["PointBlank_Version"], PointBlankInfo.Version), ConsoleColor.Green); } else if (StringComparer.InvariantCultureIgnoreCase.Compare("restartplugins", args[0]) == 0) { PluginManager.Reload(); UnturnedChat.SendMessage(executor, Translations["PointBlank_RestartPlugins"], ConsoleColor.Green); } else { UnturnedChat.SendMessage(executor, Translations["PointBlank_Invalid"], ConsoleColor.Red); } }
public override void Execute(PointBlankPlayer executor, string[] args) { if (StringComparer.InvariantCultureIgnoreCase.Compare(args[0], Translations["Player_Commands_Help"]) == 0) { UnturnedChat.SendMessage(executor, Commands[0] + " " + Translations["Player_Commands_Reload"], ConsoleColor.Green); UnturnedChat.SendMessage(executor, Commands[0] + string.Format(Translations["Player_Group"], Translations["Player_Commands_Groups"]), ConsoleColor.Green); UnturnedChat.SendMessage(executor, Commands[0] + string.Format(Translations["Player_Group_Modify"], Translations["Player_Commands_Groups"], Translations["Player_Commands_Groups_Add"]), ConsoleColor.Green); UnturnedChat.SendMessage(executor, Commands[0] + string.Format(Translations["Player_Group_Modify"], Translations["Player_Commands_Groups"], Translations["Player_Commands_Groups_Remove"]), ConsoleColor.Green); UnturnedChat.SendMessage(executor, Commands[0] + string.Format(Translations["Player_Permissions"], Translations["Player_Commands_Permissions"]), ConsoleColor.Green); } else if (StringComparer.InvariantCultureIgnoreCase.Compare(args[0], Translations["Player_Commands_Permissions"]) == 0) { Permissions(executor, args); } else if (StringComparer.InvariantCultureIgnoreCase.Compare(args[0], Translations["Player_Commands_Groups"]) == 0) { Groups(executor, args); } else if (StringComparer.InvariantCultureIgnoreCase.Compare(args[0], Translations["Player_Commands_Reload"]) == 0) { UnturnedServer.ReloadPlayers(); UnturnedChat.SendMessage(executor, Translations["Player_Reloaded"], ConsoleColor.Green); } }