-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUtil.cs
More file actions
36 lines (30 loc) · 752 Bytes
/
Util.cs
File metadata and controls
36 lines (30 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.IO;
using System.Collections.Generic;
using System.Threading;
using WindowsTimer = System.Windows.Forms.Timer;
using Decal.Adapter;
using Decal.Adapter.Wrappers;
namespace TreeStats
{
public static class Util
{
public static PluginHost MyHost;
public static void Init(PluginHost host)
{
MyHost = host;
}
public static void Destroy()
{
MyHost = null;
}
public static void WriteToChat(string message)
{
if (Settings.silent)
{
return;
}
MyHost.Actions.AddChatText("[TreeStats] " + message, 1, 1);
}
}
}