Console commands

Any information about the fun attribute is given here.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3771
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Console commands

Post by Lobby »

Commands are defined using the meta tag that can be defined in any plugin. It will look like:

Code: Select all

"meta":{
  "tags":{
    "console":{
      "commands":{
        "mycommand":{
            "condition":{...},
            "actions":[...]      // Just a normal fun transition object
        }
      }
    }
  }
}
Writing mycommand into the console would execute the transition(s).
User avatar
robyns1
Settler
Reactions:
Posts: 3
Joined: 16 Feb 2024, 18:03

Plugin Creator

Platform

Re: Console commands

Post by robyns1 »

I know this topic is *really* old, but uhh...
Can you give an exampleee of a command that uses conditions n'(and) stuff? Like a command that returns stuff from the game? if you even see this lol
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3685
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Console commands

Post by JustAnyone »

Code: Select all    Reset

{ "id":"$ja_seasons_console01", "type":"template", "active":true, "meta":{"tags":{"console":{ "commands":{ "enable auto seasons":{ "actions":[ {"type":"set","id":"!_seasonsja","code":"0"}, {"type":"feedback","id":"Automatic seasons enabled"} ] } } }}} }
JSON checker
Check
Previous topicNext topic