mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-11 18:08:05 +00:00
feat: Implement Minecraft-style execute command with relative positioning (#1864)
* Initial plan * Implement Minecraft-style execute command Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com> * Add relative positioning support to execute command using ~ syntax Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com> * update the parsing and fix chat response --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com> Co-authored-by: Aaron Kimbrell <aronwk.aaron@gmail.com>
This commit is contained in:
@@ -808,6 +808,15 @@ void SlashCommandHandler::Startup() {
|
||||
};
|
||||
RegisterCommand(DeleteInvenCommand);
|
||||
|
||||
Command ExecuteCommand{
|
||||
.help = "Execute commands with modified context (Minecraft-style)",
|
||||
.info = "Execute commands as different entities or from different positions. Usage: /execute <subcommand> ... run <command>. Subcommands: as <entity>, at <entity>, positioned <x> <y> <z>",
|
||||
.aliases = { "execute", "exec" },
|
||||
.handle = DEVGMCommands::Execute,
|
||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||
};
|
||||
RegisterCommand(ExecuteCommand);
|
||||
|
||||
// Register Greater Than Zero Commands
|
||||
|
||||
Command KickCommand{
|
||||
|
Reference in New Issue
Block a user