Creating chat commands
This page will help you to create chat commands in your plugins.
[ChatCommand("hi", "Says hi to you")]
public static string TestCommand(Network_Player player)
{
return "Hi " + player.GetName();
}// The last argument is a permission, this will make the command only available
// to users with the said permission granted.
[ChatCommand("hi", "Says hi to allowed users", "myplugin.commands.hi")]
public static string TestCommand(Network_Player player)
{
return "Hi " + player.GetName();
}[ChatCommand(name:"hi",docs:"a description",permission:"myplugin.hicommand")]
public static void TestCommand(Network_Player player)
{
// Do your stuff.
}Last updated