Trace will be ignore when plugin compiled.

Debug need checked 'enable plugin debug' in PRoCon.

Output can be used anytime and anywhere in pcocon.

Пример #1
0
 public void OnPluginDisable()
 {
     Output.Information(string.Format("^b{0} {1} ^1Disabled^n", GetPluginName(), GetPluginVersion()));
     isEnable = false;
     // Add some code
 }
Пример #2
0
 public void OnPluginEnable()
 {
     Output.Information(string.Format("^b{0} {1} ^2Enabled^n", GetPluginName(), GetPluginVersion()));
     /// Add some code
     isEnable = true;
 }