Date: 2017/11/14 16:57:45 UTC-08:00
Type: Denizen Script
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."
}