Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Windows.Forms;
- using System.Runtime.InteropServices;
- //Add the "addon/dist/addon.dll" as a reference to your project
- //Then add "using Addon;" for the namespace
- //Documentation is currently being re-written
- using Addon;
- namespace plugin_test
- {
- //"<class name> : CPlugin" is needed to inherit the functions
- public class plugin_test : CPlugin
- {
- //Example overrides for functions
- public override void OnServerFrame()
- {
- }
- public override void OnServerLoad()
- {
- }
- public override ChatType OnSay(string Message, ServerClient Client)
- {
- ServerPrint("Player " + Client.Name + " said " + Message);
- return ChatType.ChatContinue;
- }
- public override string OnCheckBan(string xuid)
- {
- //Return a string if the player is banned
- //otherwise return null
- //xuid = xuid in the "status" command
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement