Configuration File
The main config file and all of it's uses

Config File

1
config:
2
3
#If set to true, placeholders in panels will refresh
4
#A server restart is necessary after changing this
5
refresh-panels: true
6
7
#Disables /cpb if it is not required (optimisation purposes)
8
#A server restart is necessary after changing this
9
panel-blocks: true
10
11
#if set to false, this will disable the ingame editor
12
#A server restart is necessary after changing this
13
ingame-editor: true
14
15
#if set to false, this will disable hotbar items
16
#A server restart is necessary after changing this
17
hotbar-items: true
18
19
#if set to false, this will disable custom commands
20
#A server restart is necessary after changing this
21
custom-commands: true
22
23
#This will stop the plugin from registering panel custom commands
24
#Previously registered custom commands will not be removed from commands.yml
25
auto-register-commands: true
26
27
#If this is enabled, panels will update from file automatically when opened
28
auto-update-panels: false
29
30
#Time in ticks between each refresh
31
refresh-delay: 20
32
33
#Time in milliseconds before %cp-server-<IP>:<PORT>% will timeout. For local networks use 10, exceed 500 with caution (the lower the better).
34
#A number too low may give a false negative result and a number too high may cause lag
35
server-ping-timeout: 10
36
37
#If you want the "sound-on-open" sound to stop when a panel is closed
38
stop-sound: true
39
40
#Determines if the plugin should send a message or not if a panel is trying to be opened in the wrong world
41
disabled-world-message: true
42
43
#Set to false if you don't want to receive notifications for new versions
44
update-notifications: true
45
46
#Set to true if you would like the console to send messages when players on the server open or close panels
47
panel-snooper: false
48
49
format:
50
51
#The tag Format before all the commands
52
tag: '&6[&bCommandPanels&6]'
53
54
#Format of the no permission command
55
perms: '&cNo permission.'
56
57
#Format of the Reload command
58
reload: '&aReloaded.'
59
60
#Format when a panel isn't found
61
nopanel: '&cPanel not found.'
62
63
#If there is no open-with-item in the config for that Panel
64
noitem: '&cPanel doesn''t have clickable item.'
65
66
#If the player name isn't found
67
notitem: '&cPlayer not found.'
68
69
#The default error code message
70
error: '&cError found in config at'
71
72
#Name that is shown when the player is offline when using %cp-player-online-1-find%
73
offline: Offline
74
75
#Head value that is shown when the player is offline when using %cp-player-online-1-find%
76
offlineHeadValue: eyJ0ZXh0d...
77
78
#This will open the panel 'example' in the world named 'world1'
79
#Multiple worlds with panels can be added here
80
#These will only run when the player changes worlds
81
open-on-join:
82
world1: example
83
84
#The below will do the same as above but only runs when the player logs into the server
85
open-on-login:
86
world1: example
87
88
input:
89
#Change this to something you would like players to type to cancel the %cp-player-input% input
90
input-cancel: cancel
91
92
#This is the message that will display when something has been cancelled from input
93
input-cancelled: '&cCancelled!'
94
95
#This is the default value for the maximum input length.
96
#Use -1 if you do not want to set a maximum length
97
max-input-length: -1
98
99
#This is the message that will appear when you want to ask for the players input. Use the placeholders %cp-tag% for the plugins tag, and use %cp-args% for the value of input-cancel
100
input-message:
101
- '%cp-tag%&aEnter Input for Command'
102
- '&cType &4%cp-args% &cto Cancel the command'
103
104
#used to choose your formatting for hex colour codes
105
#the below example would work for #ff0000
106
#if you changed start_tag to '{#' and end_tag to '}' it would work with {#ff0000}
107
hexcodes:
108
start_tag: '#'
109
end_tag: ''
110
111
#choose the symbol for built in CommandPanels placeholders
112
#start and end indicate the front and back of the placeholder
113
#secondary symbols are the placeholders that go inside other placeholders
114
#You can also put this inside a panel for panel specific custom placeholders
115
placeholders:
116
primary:
117
start: '%'
118
end: '%'
119
secondary:
120
start: '{'
121
end: '}'
122
123
updater:
124
125
#this is RECOMMENDED to be set to true. It will update the plugin on server restart.
126
auto-update: true
127
128
#If you only want to update minor updates automatically, set this to true. (bug fixes and small features only)
129
minor-updates-only: true
130
131
#will send a message on join if the plugin needs an update
132
#If changed, restart the server for changes to take effect
133
update-checks: true
134
135
#Messages that are sent when purchasing or selling in a panel.
136
#the placeholder %cp-args% will be replaced with the money amount or type of item.
137
purchase:
138
currency:
139
success: '&aSuccessfully Bought For $%cp-args%'
140
failure: '&cInsufficient Funds!'
141
data:
142
success: '&aSuccessfully Bought For $%cp-args%'
143
failure: '&cInsufficient Funds!'
144
tokens:
145
success: '&aSuccessfully Bought For %cp-args% Tokens.'
146
failure: '&cInsufficient Tokens!'
147
item:
148
success: '&aSuccessfully Sold %cp-args%.'
149
failure: '&cInsufficient Items!'
150
xp:
151
success: '&aSuccessfully Bought For %cp-args% Experience.'
152
failure: '&cInsufficient Experience!'
Copied!
Copy link