private static void onInputText(string command) { bool flag = true; if (CommandWindow.onCommandWindowInputted != null) { CommandWindow.onCommandWindowInputted(command, ref flag); } if (flag && !Commander.execute(CSteamID.Nil, command)) { CommandWindow.LogError("?"); } }
// Token: 0x060027C8 RID: 10184 RVA: 0x000F0F00 File Offset: 0x000EF300 public static bool process(SteamPlayer player, string text) { bool flag = false; bool result = true; string a = text.Substring(0, 1); if ((a == "@" || a == "/") && player.isAdmin) { flag = true; result = false; } if (ChatManager.onCheckPermissions != null) { ChatManager.onCheckPermissions(player, text, ref flag, ref result); } if (flag) { Commander.execute(player.playerID.steamID, text.Substring(1)); } return(result); }
public void ExecuteTextChatCommand(string command) { #if GAME Commander.execute(Steamworks.CSteamID.Nil, command); #endif // GAME }