/// <summary> /// Construct with output type. /// </summary> /// <param name="pRoConPlugin">plugin instance</param> /// <param name="outputType">0 pluginconsole;1 console;2 chat</param> public PRoConTraceListener(PRoConPluginAPI pRoConPlugin, int outputType) { plugin = pRoConPlugin; switch (outputType) { case 2: prefix = "procon.protected.console.write"; break; case 1: prefix = "procon.protected.chat.write"; break; case 0: default: prefix = "procon.protected.pluginconsole.write"; break; } }
/// <summary> /// Construct, use pluginconsole output. /// </summary> /// <param name="pRoConPlugin">plugin instance</param> public PRoConTraceListener(PRoConPluginAPI pRoConPlugin) : this(pRoConPlugin, 0) { }