Date: 2016/09/20 19:44:02 UTC-07:00
Type: Denizen Script
noplotsmeowner:
type: command
name: notplot
description: tells you the owner of a not plot
usage: /notplot
script:
- define chunkxy <player.location.chunk.x>,<player.location.chunk.y>
- if !<yaml.list.contains[%chunkxy2]>
{
- narrate "<&5><<>NoPlotsMe<>>This not plot is unowned."
}
else
{
- define uuid <yaml[%chunkxy%].read[chunkxy]>
- if <def[uuid].as_player.in_group[player]>
{
- narrate "<&5><<>NoPlotsMe<>>This is a private chunk owned by <def[uuid].as_player.name>.
}
else
{
- narrate "<&5><<>NoPlotsMe<>>This is a public chunk."