- 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


TitleNetwork Wide Ranks
TypeDenizen Script
Date2017/09/10 18:55:43 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
8600
Ranks:
    type: command
    name: rank
    usage: /rank
    commandArgs:
        hire:
            usage'/rank hire <player>'
            permissions:
                - ranks.hire
        fire:
            usage'/rank fire <player>'
            permissions:
                - ranks.fire
        change:
            usage'/rank change <player> <group>'
            permissions:
                - ranks.change
    script:
        - if <context.server> {
            - define args <context.args>
            - choose <def[args].get[1]>:
                - case "hire":
                    - bungeeexecute "whitelist add <def[args].get[2]>"
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                - case "fire":
                    - bungeeexecute "whitelist remove <def[args].get[2]>"
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                - case "change":
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
        } else {
            if <player.has_permission[ranks.*]> {
                - define args <context.args>
            - choose <def[args].get[1]>:
                - case "hire":
                    - bungeeexecute "whitelist add <def[args].get[2]>"
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                - case "fire":
                    - bungeeexecute "whitelist remove <def[args].get[2]>"
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set Peasant"
                - case "change":
                    - bungee Hub:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Masonary:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee Palegio:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
                    - bungee FarmTycoon:
                        - execute as_server "pex user <def[args].get[2]> group set <def[args].get[3]>"
            }
        }



RawRaw



Pastes made: 70296