- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2017/09/06 03:23:40 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800
        - 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!"
            }



RawRaw



Pastes made: 66590