Date: 2015/06/01 01:53:14 UTC-07:00
Type: Denizen Script
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
ServerChat:
type: format
format: "<red>C.O.R.E Server: <blue><text>"
Verification:
type: world
events:
on player join:
- if !<player.in_group[unverified].global.and.player.has_flag[verified]> {
- flag player verified
- wait 1
- narrate format:ServerChat "You have been automatically 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