예제 #1
0
 public static void OnOutput(string text)
 {
     if (IPCM.IPCType == EIPCType.CONSOLE)
     {
         PointBlankConsole.WriteLine("0x0:" + text);
     }
 }
예제 #2
0
 /// <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));
     }
 }
예제 #3
0
 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;
     }
 }
예제 #4
0
 private void OnKeyUpdated(string key)
 {
     if (IPCM.IPCType == EIPCType.CONSOLE)
     {
         PointBlankConsole.WriteLine("0x1:" + key + ":" + IPC[key]);
     }
     else if (IPCM.IPCType == EIPCType.FILE)
     {
         _Update = true;
     }
 }