Skip to content

Added create and delete events for Towns and Nations

on town create
on town delete
on nation create
on nation delete
Assets 3

@TheLimeGlass TheLimeGlass released this Sep 21, 2021

{
  "events": [
    {
      "id": "town_add_resident",
      "name": "On town add resident",
      "patterns": [
        "[on] town add resident"
      ],
      "event values": [
        "event-town",
        "event-resident"
      ],
      "cancellable": true
    },
    {
      "id": "town_add_resident_rank",
      "name": "On town add resident rank",
      "patterns": [
        "[on] town add resident rank"
      ],
      "event values": [
        "event-town",
        "event-resident",
        "event-string"
      ],
      "cancellable": false
    },
    {
      "id": "town_block_settings_change",
      "name": "On town block settings change",
      "patterns": [
        "[on] town block settings change"
      ],
      "event values": [
        "event-townblock",
        "event-town"
      ],
      "cancellable": false
    },
    {
      "id": "town_claim",
      "name": "On town claim",
      "patterns": [
        "[on] town claim"
      ],
      "event values": [
        "event-townblock",
        "event-player"
      ],
      "cancellable": true
    },
    {
      "id": "town_leave",
      "name": "On town leave",
      "patterns": [
        "[on] town leave"
      ],
      "event values": [
        "event-town",
        "event-resident"
      ],
      "cancellable": true
    },
    {
      "id": "town_remove_resident",
      "name": "On town remove resident",
      "patterns": [
        "[on] town remove resident"
      ],
      "event values": [
        "event-town",
        "event-resident"
      ],
      "cancellable": false
    },
    {
      "id": "town_remove_resident_rank",
      "name": "On town remove resident rank",
      "patterns": [
        "[on] town remove resident rank"
      ],
      "event values": [
        "event-town",
        "event-resident",
        "event-string"
      ],
      "cancellable": false
    },
    {
      "id": "town_rename",
      "name": "On town rename",
      "patterns": [
        "[on] town rename"
      ],
      "event values": [
        "past event-string",
        "event-town",
        "future event-string"
      ],
      "cancellable": true
    },
    {
      "id": "town_unclaim",
      "name": "On town unclaim",
      "patterns": [
        "[on] town unclaim"
      ],
      "event values": [
        "event-townblock"
      ],
      "cancellable": true
    }
  ],
  "expressions": [
    {
      "id": "ExprResidentFriends",
      "name": "Resident Friends",
      "description": [
        "Get the friends of a Resident."
      ],
      "return type": "Resident",
      "patterns": [
        "[the] [resident] friends of %residents%",
        "%residents%'[s] [resident] friends"
      ]
    },
    {
      "id": "ExprResidentNationRanks",
      "name": "Resident Nation Ranks",
      "description": [
        "Get the nation ranks of a Resident."
      ],
      "return type": "Text",
      "patterns": [
        "[the] nation ranks of %residents%",
        "%residents%'[s] nation ranks"
      ]
    },
    {
      "id": "ExprResidentTownRanks",
      "name": "Resident Town Ranks",
      "description": [
        "Get the town ranks of a Resident."
      ],
      "return type": "Text",
      "patterns": [
        "[the] town ranks of %residents%",
        "%residents%'[s] town ranks"
      ]
    },
    {
      "id": "ExprTownBlocks",
      "name": "Town Blocks",
      "description": [
        "Get the town blocks of a Town. TownBlocks are not item blocks."
      ],
      "return type": "TownBlock",
      "patterns": [
        "[the] town (blocks|chunks) of %towns%",
        "%towns%'[s] town (blocks|chunks)"
      ]
    },
    {
      "id": "ExprTownNation",
      "name": "Town Nation",
      "description": [
        "Get the nation of a Town."
      ],
      "return type": "Nation",
      "patterns": [
        "[the] [towny] nation[s] of %towns%",
        "%towns%'[s] [towny] nation[s]"
      ]
    }
  ],
  "types": [
    {
      "id": "Nation",
      "name": "Nation",
      "patterns": [
        "nation[s]"
      ]
    },
    {
      "id": "Resident",
      "name": "Resident",
      "patterns": [
        "resident[s]"
      ]
    },
    {
      "id": "Town",
      "name": "Town",
      "patterns": [
        "town[s]"
      ]
    },
    {
      "id": "TownBlock",
      "name": "TownBlock",
      "patterns": [
        "town[ ]block[s]"
      ]
    },
    {
      "id": "TownyWorld",
      "name": "TownyWorld",
      "patterns": [
        "towny[ ]world[s]"
      ]
    }
  ]
}
Assets 3