Date: 2016/02/08 23:20:54 UTC-08: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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#################################
# File for EventEngine commands #
#################################
############################################################
# Command script for configuring the options of the engine #
############################################################
EventEngine_Configure:
type: command
name: engine
usage: /engine <<>debug/framework/reload<>> <<>Enable/Disable:All/Core/Modules<>>
description: Use this command to configure the core of the engine
permission: denizen.engine.configure
permission message: <&4>You do not have permission to use this command<&r>
allowed help:
- determine <player.has_permission[denizen.engine.configure]||<context.server>>
script:
- if <context.args.size> != 2 {
- narrate format:Error_Format "Stop fucking around m8."
- queue clear
}
- choose <context.args.get[1]>:
- case "debug":
- choose <context.args.get[2]>:
- case "enable":
- yaml id:config set engine.options.enable-framework-debug:'true'
- narrate format:Debug_Format "Framework debugging is now enabled."
- case "disable":
- yaml id:config set engine.options.enable-framework-debug:'false'
- narrate format:Debug_Format "Framework debugging is now disabled"
- case "framework":
- choose <context.args.get[2]>:
- case "enable":
- yaml id:config set engine.options.enable-framework:'true'
- narrate format:Debug_Format "Framework is now enabled"
- case "disable":
- yaml id:config set engine.options.enable-framework:'false'
- narrate format:Debug_Format "Framework is now disabled"
- case "reload":
- choose <context.args.get[2]>:
- case "All":
- ^run EventEngine_Load_Core def:<queue>
- queue <queue> pause
- ^run EventEngine_Load_Modules
- narrate format:Debug_Format "Reloaded dFramework"
- case "Core":
- ^run EventEngine_Load_Core def:<queue>
- narrate format:Debug_Format "Reloaded dFramework core"
- case "Modules":
- ^run EventEngine_Load_Modules
- yaml savefile:../dFramework/config.yml id:config