public static void OnOutput(string text) { if (IPCM.IPCType == EIPCType.CONSOLE) { PointBlankConsole.WriteLine("0x0:" + text); } }
/// <summary> /// Sends a message to the player or the console(null = console, instance = player) /// </summary> /// <param name="player">The player(null for console) to send the message to</param> /// <param name="message">The message to send</param> public static void SendMessage(PointBlankPlayer player, object message, ConsoleColor color) { if (IsServer(player)) { PointBlankConsole.WriteLine(message, color); } else { player.SendMessage(message, PointBlankConsole.ConsoleColorToColor(color)); } }
private void OnKeySet(string key, string value) { if (IPCM.IPCType == EIPCType.CONSOLE) { PointBlankConsole.WriteLine("0x1:" + key + ":" + value); } else if (IPCM.IPCType == EIPCType.FILE) { _Update = true; } }
private void OnKeyUpdated(string key) { if (IPCM.IPCType == EIPCType.CONSOLE) { PointBlankConsole.WriteLine("0x1:" + key + ":" + IPC[key]); } else if (IPCM.IPCType == EIPCType.FILE) { _Update = true; } }