Ability to run commands through the API on the server
Essentially just something like "hd:RunCommand([command here])".
This would be very useful for quickly doing things that are built-in to HD Admin without having to recode them if you wanna use them without a player manually entering in a command.
One common use/example could be an automatic temp ban if a player flags a simple anti-cheat check.
Ofc anything that could be done with this could be done by a developer just coding it themselves, but if they are already using HD Admin then this functionality could be very helpful for them.
@ForeverHDTeam · Solution
good news, v2 now has exactly this! it's called
requestCommandand within the server api:it runs the message exactly as if it was chatted and hands you back whether it was approved, any notices, and the tasks it created
for your anticheat example you'd do something like:
there's also a dedicated
banAsyncif you'd rather skip the command layer and pass options directly (reason, scope, duration, and it works for offline players too):you can find the full docs at hdadmin.com/server-api/#requestcommand-server and hdadmin.com/using-the-api/