You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800

Untitled Paste
Denizen Script
2017/09/06 03:23:40 UTC-07:00
Guest
Click here to view this paste as a raw text file | Or download the script


        - case "core":
            - if <player.flag[rank]> == leader {
                - if <context.args.size> == 2 {
                    - if <yaml[<player.flag[nation]>.read[cores]||null> == null {
                        - narrate "<&a>Setting nation core as '<context.args.get[2]>'" 
                        - yaml id:<player.flag[nation]> set cores:!
                        - yaml id:<player.flag[nation]> set cores.<player.location.chunk>:<context.args.get[2]>
                        - yaml "savefile:dNations/<player.flag[nation]>.yml" id:<player.flag[nation]>
                    }
                }
                else {
                    - narrate "<&c>You must specify an ID!"
                }
            }
            else {
                - narrate "<&c>You must be a nation leader to set a core chunk!"
            }