-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExamplePlugin.cs
42 lines (35 loc) · 1.01 KB
/
ExamplePlugin.cs
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
37
38
39
40
41
42
using DiscordAmxPlugin;
using discordamx;
using AMXWrapperCore;
using discordamx.Scripting;
namespace DcAmxTestPlugin
{
public class MyGoodPlugin : IPlugin
{
public void Initialize()
{
Program.m_Logger.Write("Plugin Example by 'name here' has been loaded.");
}
public string[] GetNatives()
{
return new string[] { "TestNative1", "TestNative2" };
}
public string GetName()
{
return ("MyGoodPlugin v1");
}
public static int TestNative1(AMX amx1, AMXArgumentList args1, Script caller_script)
{
Console.WriteLine("So far, so good.");
return 1;
}
public static int TestNative2(AMX amx1, AMXArgumentList args1, Script caller_script)
{
Console.WriteLine("Rain is wet. Water is wet. Wet is moisture. Moisture is hydration. Hydration is good. ");
return 1;
}
public void OnUnload()
{
}
}
}