Paste #36377: Untitled Paste

Date: 2016/09/20 19:44:02 UTC-07: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
19
20
21


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><&lt>NoPlotsMe<&gt>This not plot is unowned."
        }
    else
        {
        - define uuid <yaml[%chunkxy%].read[chunkxy]>
        - if <def[uuid].as_player.in_group[player]>
            {
            - narrate "<&5><&lt>NoPlotsMe<&gt>This is a private chunk owned by <def[uuid].as_player.name>.
            }
        else
            {
            - narrate "<&5><&lt>NoPlotsMe<&gt>This is a public chunk."