Closed Basgamer999 closed 1 year ago
Sorry for the late response, you can achieve the following with
schemaVersion = 1
commandMode = "COMMAND_CUSTOM"
command = "gmode"
[[actions]]
command = "gamemode spectator $executor_name()"
commandType = "SERVER"
[[actions.actionsIfUnsuccessful]]
command = "gamemode creative $executor_name()"
commandType = "SERVER"
[[actions.actionsIfUnsuccessful]]
you didn't have the property inside of said action.
Then maybe make it a bit more clear on the wiki page https://wiki.commandaliases.flashyreese.me/command-modes/custom/action-component . Also there is a bug here you assign me to to this page but this page redirects me back to the other site. This makes it kinda confusing for new people.
I removed the extra page. It's not suppose to be there.
I followed the wiki trying to create a custom command that switch between spectator and creative but its not working when i add the unsuccesful part `schemaVersion = 1 commandMode = "COMMAND_CUSTOM" command = "gmode"
[[actions]] id = "generic" command = "gamemode spectator $executor_name()" commandType = "SERVER" requireSuccess = false messageIfUnsuccessful = "Test"
[[actionsIfUnsuccessful]] command = "gamemode creative $executor_name()" commandType = "SERVER" requireSuccess = false messageIfUnsuccessful = "Test"
This is the .toml file i got but i just get a error that it not load:
[12:29:55] [Server thread/ERROR]: Failed to load file at "/home/container/./config/commandaliases/g-mode.toml" throws com.fasterxml.jackson.dataformat.toml.TomlStreamReadException: Newline not permitted here at [Source: (File); line: 12, column: 22]`