Creating A Plugin - ltseverydayyou/Nameless-Admin GitHub Wiki
You can now add your own commands to Nameless Admin using simple plugin files.
-
Go to your executor’s
Workspace
folder. -
Inside
Nameless-Admin/Plugins/
, create a new file with a.na
extension.
📌 Example:
Workspace/Nameless-Admin/Plugins/test.na
- Add your commands to that file using one of the supported formats below.
You can define commands in two different ways — either as separate definitions or grouped together in a list. Both styles are supported, and you can even mix them in the same file.
cmdPluginAdd = {
Aliases = {"test", "balls"}, -- Command names and aliases (first is the main one)
ArgsHint = "<arg>", -- (optional) Shown in usage info like 'test <arg>'
Info = "Displays the argument using DoNotif", -- Description in the command list
Function = function(arg) -- What the command does
DoNotif("result: "..tostring(arg))
end,
RequiresArguments = true -- Set this to true if arguments are required
}
cmdPluginAdd = {
Aliases = {"mixalis"},
Info = "test",
Function = function()
print("g")
end,
RequiresArguments = false
}
cmdPluginAdd = {
{
Aliases = {"test", "balls"},
ArgsHint = "<arg>",
Info = "Displays the argument using DoNotif",
Function = function(arg)
DoNotif("result: "..tostring(arg))
end,
RequiresArguments = true
},
{
Aliases = {"mixalis"},
Info = "test",
Function = function()
print("g")
end,
RequiresArguments = false
}
}
Your plugin commands will load automatically. The loader will also show which file each command came from, so it’s easier to track where things are.
ℹ️ Info: This is a copy from the discord server, however you can download a example file from #plugin-info on the discord server