So I'm working on making my first plugin and I'm running into some issues. Didn't know where else to post this since there doesn't seem to be a plugin development thread. So the goal of this is to be a simple plugin to add as many /commands as you would like that you may have to do on wipeday for example. Such as /kits resetdata and whatever else. The goal is to limit it to one simple command /wipeday. Instead of running around resetting the data for multiple plugins each time. The part I am stuck on, should be really simple but after looking through the documentation for UMod I know how to make a command for everything except other commands. Here is what I have so far:
Would appreciate any help, thanks!
private void RegisterPermissions()
{
string[] names = new string[] { "wipeday" };
foreach (var name in names)
permission.RegisterPermission("wipeday.use");
}
private void Init() => cmd.Wipeday("wipeday", this, wipeday);
private void CommandItself(BasePlayer player, string wipeday, string[] args)
{
ChatCommand
}
[ChatCommand("wipeday")]
"
}Would appreciate any help, thanks!