-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunnyguilds.cfg
49 lines (37 loc) · 1.17 KB
/
funnyguilds.cfg
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
plugin {
plugin_name FunnyGuilds
api_version "1.7" "1.8" "1.9" "1.10" "1.11" "1.12" "1.13"
database ~mysql {
storage_type MY_SQL
storage_performance UBER
storage_cache 1s
}
command ~g {
command_permission "funnyguilds.command"
command_usage AUTO
command_description "FunnyGuilds main command."
sub_command ~zaloz {
command_permission "funnyguilds.create"
command_procedure @create_guild %e $1 $2
}
sub_command ~info {
command_permission "funnyguilds.info"
command_procedure @guild_info %e $1
}
}
procedure ~create_guild {
procedure_database mysql
procedure_timeout 2s
procedure_validation {
validate_action $e {
select from mysql:guilds owned by %e == 0
}
validate_regex $1 ^[a-zA-Z_-]{4,24}$
validate_regex $2 ^[A-Z]{4}$
}
procedure_actions {
insert into mysql:guilds new guild ($1, $2) owned by %e
send message %e "Gildia o nazwie $1 oraz tagu $2 stworzona!"
}
}
}