- mcmonkey studios -
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
Date2015/06/02 02:33:57 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
5100
ServerChat:
    type: format
    format"<red>C.O.R.E Server<blue><text>"

Verification:
    type: world
    events:
        on player join:
            - if <player.in_group[Unverified].not> {
                - if !<player.has_flag[verified]> {
                    - wait 1
                    - narrate format:ServerChat "You have been automatically verified!"
                    - flag player verified
                    - queue clear
                }
            }
            - if !<player.has_flag[verified]> {
                - wait 1
                - narrate format:ServerChat "You are not verified yet!"
                - narrate format:ServerChat "Type <green>/verify <blue>to verify you are not a robot!"
            }

Verifier:
    type: command
    name: verify
    description: Accept the rules and verify you as a user!
    usage: /verify
    script:
        - if !<player.has_flag[verified]> {
            - ^execute as_server "pex user <player.name> group set Member"
            - flag player verified
            - narrate format:ServerChat "Thanks for verifying your account!"
        } else {
            - narrate format:ServerChat "You are already verified, thanks!"
        }

Verified:
    type: command
    name: verified
    description: Lists the verified players!
    usage: /verified
    script:
        - if <context.server> 
            - define verifiedUsers <server.get_players_flagged[verified]>
            - foreach <def[verifiedUsers]> {
                - announce "&9%value% &r| &eUUID: &r%value%.uuid" to_console
            }
        } else {
            - narrate format:ServerChat "This command can only be used in console!"
        }



RawRaw



Pastes made: 45668