Paste #45528: Untitled Paste

Date: 2017/11/14 16:57:45 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


mTownyPlotsHandler:
  type: command
  debug: false
  name: plots
  aliases:
  - plot
  script:
  - if <context.args.size> == 0 && <player.town.mayor> == <player> {
    - inventory open d:in@mTownyMayorPlots
    - queue clear
    }
  - if <context.args.size> == 0 && <player.has_town> == true {
    - inventory open d:in@mTownyResidentPlots
    - queue clear
    }
  - if <context.args.size> == 0 && <player.has_town> == false {
    - narrate format:Towny "You do not belong to any Town."
    }