View difference between Paste ID: iYhbbhHC and MQrkPfQx
SHOW: | | - or go back to the newest paste.
1
#-----------------------------------------------------------------------------------------------------------#
2
#							  MyCommand Commands config file (last update v5.5.0)							#
3
#																											#
4
#  BukkitDev Help page : https://dev.bukkit.org/projects/mycommand/pages/getstarted    						#
5
#																											#
6
#	How to make a command :	(See an example command below)													#
7
#		For first, put your command name on first line  													#
8
#		Now put your command_line name after the "command:" line. Don't forget the '/' before your command.	#
9
#		So, now select your command type from a predefined list putting it after "type" line				#
10
#	COMMAND TYPE LIST :																						#
11
#		TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT			#
12
#		ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUN_CONSOLE_RANDOM , SPOUT_TEXT					#
13
#       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION		#
14
#		BAR_API_TEXT , BAR_API_BROADCAST_TEXT , CALL_URL, TITLE, BROADCAST_TITLE, ACTION_BAR				#
15
#																											#
16
#	If your command is "TEXT" type, you can put multiple line of text below this parameter					#
17
#	You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list	#
18
#	For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list				#
19
#	Set delay time with delaytimer: 5 (5 = seconds) | 														#
20
#   If you are using the Vault plugin, you can put the "cost: 123.0" with this line. 						#
21
#	You can customize your permission node by placing "permission-node:" field in a command					#
22
#	Also,you can change the permission error message with "permission-error:"								#
23
#   Custom error-message for invalid args ,put "error-message:" line in a command.							#
24
#   You can use itemcost : 'ID:AMOUNT' for set a cost with items. 											#
25
#   Register REAL commands putting "register: true" below the command.     									#
26
#   With register commands you can use the "tab_completer: - Hi - Hello!"									#
27
#   For Scripts and more features, find more on the bukkitdev page											#
28
#-----------------------------------------------------------------------------------------------------------#
29
gamemode_alias:
30
  command: /gm
31
  type: ALIAS
32
  alias: /gamemode
33
  permission-required: true
34
plugin_server:
35
  command: /pl
36
  type: TEXT
37
  text:
38
  - '&fModule (1): &eServer'
39
  permission-required: false
40
plugin_server2:
41
  command: /plugins
42
  type: TEXT
43
  text:
44
  - '&fModule (1): &eServer'
45
  permission-required: false
46
help_command:
47
  command: /hilfe
48
  type: TEXT
49
  text:
50
  - '&8|━━━━━━━━━━ &eHilfe &8━━━━━━━━━━|'
51
  - '&cKommt noch!'
52
  - '&8|━━━━━━━━━━ &eHilfe &8━━━━━━━━━━|'
53
  permission-required: false
54
tab_completer:
55
  command: /greets 
56
  type: RUN_COMMAND
57
  runcmd:
58
  - '$broadcasttext$&0[&e$player&0]&r $multiargs'
59
  required_args: 1
60
  register: true
61
  tab_completer:
62
  - Hi
63
  - Hello!
64
  - Well Met!
65
shortcut:
66
  command: /l
67
  type: RUN_COMMAND
68
  runcmd:
69
  - '/list'
70
  cost: 0
71
mycmd_colors:
72
  command: /mycmd-colors
73
  type: TEXT
74
  text:
75
  - "&11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
76
  - "&nn&r &mm&r &ll&r &oo&r $random_color :D"
77
  permission-required: false
78
shortcut_with_arguments:
79
  command: /t
80
  type: RUN_COMMAND
81
  runcmd:
82
  - '/time $arg1 $arg2'
83
  cost: 0
84
  error-message: '&cType &e/t set day'
85
  require_all_arguments: true
86
delay_example:
87
  command: /mycmd-countdown
88
  type: RUN_COMMAND
89
  runcmd:
90
  - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color3..'
91
  - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color2..'
92
  - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color1..'
93
  - '$delay$$broadcasttext$&0[&eCountdown&0] &eGO!!'
94
  cost: 0
95
  delaytimer: 1
96
  delaytimer_format: SECONDS
97
broadcast_example:
98
  command: /mycmd-broadcast
99
  type: BROADCAST_TEXT
100
  text:
101
  - '&0[&e$player&0]&r $multiargs'
102
  required_args: 1
103
run_by_console:
104
  command: /mycmd-runconsole
105
  type: RUN_CONSOLE
106
  runcmd:
107
  - /say This message is getting performed by the console.
108
  cost: 0
109
warmups_cooldowns_info:
110
  command: /warmupsandcooldowns
111
  type: TEXT
112
  text:
113
  - 'Put your command over /warmupsandcooldowns'
114
  - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
115
  - 'adjust the warmup and cooldowns time with delaytimer'
116
  delaytimer: 5
117
add_permission:
118
  command: /command-to-override
119
  type: ADD_PERMISSION
120
  text:
121
  - '$6Add an extra permission to another existing command'
122
  permission-node: permission.name
123
  cost: 0
124
some_placeholders:
125
  command: /mycmd-playerinfo
126
  type: TEXT
127
  text:
128
  - '&2Player name : &a$player'
129
  - '&2World : &a$world'
130
  - '&2Health : &a$health &2Food : &a$food'
131
  - '&2Exp : &a$exp &2Level : &a$level'
132
  - '&2Gamemode : &a$gamemode'
133
  - '&2LastDamage : &a$lastdamage'
134
mycmd_list_command:
135
  command: /mycmd-online
136
  type: TEXT
137
  text:
138
  - '&2There are &a$online &2players online.'
139
  - '&a $ponline'
140
clear_chat:
141
  command: /clearchat
142
  type: BROADCAST_TEXT
143
  text:
144
  - '%Repeat%100% '
145
  - '&0[&eMyCommand&0]&b Chat clared :D'
146
shortcut_with_multiargs:
147
  command: /mycmd-shortcut
148
  type: RUN_COMMAND
149
  runcmd:
150
  - '/say $multiargs'
151
random_example:
152
  command: /rockpaperscissors
153
  type: RUN_COMMAND_RANDOM
154
  runcmd:
155
  - '/me Rock!'
156
  - '/me Paper!'
157
  - '/me Scissors!'
158
iconmenu_page1:
159
  command: /iconmenu
160
  type: ICON_MENU
161
  text:
162
  - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
163
  - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT_NAME;LEVEL'
164-
  iconmenu_title: '&cMyCommand &4ItemMenu'
164+
  iconmenu_title: '&eServer Menu'
165
  iconmenu_size: 27
166
  iconmenu_commands:
167
  - 0:GOLDEN_APPLE:0:/hilfe:&2Hilfe:&aÖffnet das Hilfe Menü!
168
  - 1:COMPASS;DAMAGE_ALL;1:0:/mycmd:Menu:MyCommand menu
169
  - 9:EMERALD:0:/list:Player List:&bShow online players
170
  - 10:LEGACY_WATCH:0:/time set 0:Day:Turn day
171
  - 11:PLAYER_HEAD%$player:0:/command:Title:Description
172
  - 26:LEGACY_WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->
173
  cost: 0
174
  delaytimer: 5
175
iconmenu_page2:
176
  command: /iconmenu2
177
  type: ICON_MENU
178
  iconmenu_title: 'Page 2'
179
  iconmenu_size: 9
180
  iconmenu_commands:
181
  - '0:LEGACY_GOLDEN_APPLE:0:Do something:Hello!:=)'
182
  - '8:LEGACY_WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
183
  cost: 0
184
  delaytimer: 5
185
help_page_0:
186
  command: /mycmd-help
187
  type: TEXT
188
  text:
189
  - '&a ---- &6MyCommand Help &eMain Page &a----'
190
  - '&e This is the Main page of the help '
191
  - '&e Type &6/mycmd-help 2 &efor see the second page'
192
help_page_1:
193
  command: /mycmd-help 2
194
  type: TEXT
195
  text:
196
  - '&a ---- &6MyCommand Help &ePage two &a----'
197
  - '&e And this is the page two of the help'
198
itemcost_example:
199
  command: /itemcostexample
200
  type: TEXT
201
  text:
202
  - '$random_colorYou have spent 5 Cobblestone for see this message.'
203
  itemcost: 'COBBLESTONE:5'
204
scoreboard_example:
205
  command: /sbexample
206
  type: SCOREBOARD
207
  text:
208
  - The Scoreboard will get removed after DelayTimer(sec). If 0 don't remove
209
  - Use $marquee$ as a prefix of the scoreboard name for scroll the text.
210
  - Use scoreboard_refresh_ticks, for determinate how frequent the plugin have to update the scoreboard.
211
  scoreboard_name: "$marquee$&1M&2y&3C&4o&5m&6m&7a&8n&9d &aS&bc&co&dr&ee&fb&0o&1a&2r&3d &nExample&r "
212
  scoreboard_text:
213
  - "4;&c&lCoordinates:"
214
  - "3;&6X:&e $locX &6Y:&e $locY &6Z:&e $locZ "
215
  - "2;&c&lPlayer Info:"
216
  - "1;&6Health: &e$health"
217
  - "0;&6Food: &e$food"
218
  scoreboard_refresh_ticks: 5
219
  delaytimer: 10
220
bungeecord_example:
221
  command: /bungeetest
222
  type: BUNGEE_TP
223
  server_name: hub
224
allowed_worlds_example:
225
  command: /onlynether
226
  type: TEXT
227
  text:
228
  - "&cYea,The Nether!"
229
  allowed_worlds:
230
  - world_nether
231
per_world_commands:
232
  command: /perworldcommand
233
  type: RUN_COMMAND
234
  runcmd:
235
  - "$world=%world%/me This command will be performed only if you are in the world"
236
  - "$world=%world_nether%/me And this only if you are in the nether"
237
  permission-required: false
238
executefor_example:
239
  command: /executeforall
240
  type: RUN_CONSOLE
241
  executefor: ONLINE_PLAYERS
242
  runcmd:
243
  - "/tp $player 0 64 0"
244
  permission-required: false
245
ouch:
246
  command: /ouch
247
  type: RUN_COMMAND
248
  runcmd:
249
  - '%PlayerOptions%damage: 1'
250
  - '$text$&c<3'
251
  permission-required: false
252
heal_me:
253
  command: /mycmd-heal
254
  type: RUN_COMMAND
255
  runcmd:
256
  - '%PlayerOptions%setHealth: 20'
257
  - '%PlayerOptions%setFoodLevel: 20'
258
  - '%PlayerOptions%sendMessage: &aHealed!'
259
  permission-required: false
260
world_guard_example:
261
  command: /checkregion
262
  type: TEXT
263
  text:
264
  - 'You are in $wgregionname region!'
265
  allowed_wg_region:
266
  - 'region_name_here'
267
custom_cmd_cooldown:
268
  command: /cooldown-example
269
  type: TEXT
270
  text:
271
  - '&aBla bla bla, type the command again for see the cooldown effect.'
272
  cooldown: 5
273
custom_cmd_warmup:
274
  command: /warmup-example
275
  type: TEXT
276
  text:
277
  - '&aYou have waited 5 second for see this command performed'
278
  warmup: 5
279
call_url:
280
  command: /call-url
281
  type: CALL_URL
282
  url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
283
  get_output : true
284
  show_output_ingame : true
285
  save_output_as : httpResponse
286
script_example_420:
287
  command: /example420
288
  type: RUN_COMMAND
289
  runcmd:
290
  - $Script$%if%$arg1==password
291
  - $text$&eRight!
292
  - $Script$%if%$arg1==420
293
  - $text$&aBLAZE IT
294
  - $Script$%else%
295
  - $text$Password not correct
296
bar_text:
297
  command: /bar_example
298
  type: BAR_API_TEXT
299
  text:
300
  - '&aHello $random_color$player'
301
  bar_seconds: 5
302
  bar_percentage: 8
303
  bar_style: SEGMENTED_20
304
  bar_flag: DARKEN_SKY
305
  bar_color: PINK
306
rawmessage_example:
307
  command: /raw-example
308
  type: RAW_TEXT
309
  text:
310
  - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
311
  - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
312
  - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
313
  - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
314
lottery_example:
315
  command: /lottery_example
316
  type: RUN_COMMAND
317
  runcmd:
318
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
319
  - '$text$&6Welcome to &eMyCommand &6Lottery!'
320
  - '$delay$'
321
  - '$text$&b+------------------------------------'
322
  - '$text$&b| &2Prize of today :'
323
  - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
324
  - '$text$&b+------------------------------------'
325
  - '$text$&ePlease wait for the results!'
326
  - '$delay$$delay$$delay$'
327
  - '$delay$$text$&0[$random_colorLottery&0] &65...'
328
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
329
  - '$delay$$text$&0[$random_colorLottery&0] &64...'
330
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
331
  - '$delay$$text$&0[$random_colorLottery&0] &63...'
332
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
333
  - '$delay$$text$&0[$random_colorLottery&0] &62...'
334
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
335
  - '$delay$$text$&0[$random_colorLottery&0] &61...'
336
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
337
  - '$delay$'
338
  - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
339
  - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;LEGACY_GOLD_INGOT;BREAD;APPLE%'
340
  - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
341
  - '$delay$'
342
  - '$text$&b+------------------------------------'
343
  - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! ' 
344
  - '$text$&b+------------------------------------'
345
  - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
346
  delaytimer: 1
347
dailybonus:
348
  command: /dailybonus
349
  type: RUN_COMMAND
350
  runcmd:
351
  - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
352
  - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
353
  - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
354
  - "%PlayerOptions%addItem: DIAMOND:1"
355
  - "$Script$%PlayerData%DailyBonus=$todaydate"
356
  - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
357
  - "$Script$%else%"
358
  - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
359
  permission-required: false
360
broadcast_message_with_perm:
361
  command: /brmsgwithperm
362
  type: BROADCAST_TEXT
363
  text:
364
  - "Only the player with the correct permission can see this message"
365
  broadcast_message_permission_node: permission.for.see.this.message
366
dynamiciconmenu:
367
  command: /dynamiciconmenu
368
  type: ICON_MENU
369
  iconmenu_size: 36
370
  iconmenu_mode: DYNAMIC
371
  permission-required: false
372
  iconmenu_commands:
373
  - "0:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
374
  - "1:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
375
  - "2:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
376
  - "3:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
377
  - "4:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
378
  - "5:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
379
  - "6:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
380
  - "7:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
381
  - "8:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
382
  - "9:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
383
  - "11:CLOCK:0:%stayopen%:&aServer time - $random_color$time:&bToday Date - &6 $todaydate"
384
  - "13:BEACON:0:/mycmd:&6MyCommand:&eLaunch MyCommand"
385
  - "15:ENDER_PEARL<next>ENDER_EYE<next>AIR:0:%stayopen%:???<next>!!!<next>AIR: "
386
  - "17:YELLOW_WOOL<next>LIME_WOOL:4:/command_example: : "
387
  - "18:LIME_WOOL<next>YELLOW_WOOL:5:/command_example: : "
388
  - "19:BOOK<next>2,BOOK<next>3,BOOK:0:%stayopen%:$random_colorPage 1<next>$random_colorPage 2<next>$random_colorPage 3:1<next>2<next>3"
389
  - "22:1,IRON_CHESTPLATE<next>GOLDEN_CHESTPLATE;PROTECTION_ENVIRONMENTAL;1<next>DIAMOND_CHESTPLATE;PROTECTION_EXPLOSIONS;3:0:/command_example::Description;Line 2..."
390
  - "25:BARRIER:0:%close%:Close this menu:&cClick here;&cto close"
391
  - "26:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
392
  - "27:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
393
  - "28:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
394
  - "29:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
395
  - "30:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
396
  - "31:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
397
  - "32:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
398
  - "33:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
399
  - "34:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
400
  - "35:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
401
  delaytimer: 2
402
holographic_example:
403
  command: /holoexample
404
  type: HOLOGRAPHIC_TEXT
405
  text:
406
  - "&eHello $player, how are you?"
407
  - "$random_coloryeah, i'm fineeeee thanks!"
408
  - "&dCurrent time &5$time"
409
  delaytimer: 3
410
merchant_example:
411
  command: /mymerchant
412
  type: MERCHANT
413
  merchant_title: '&3Hello &b$player'
414
  merchant_items:
415
  - STONE_SWORD:1:0:DAMAGE_ALL;1;FIRE_ASPECT;1:&3Old Sword:&bA very old sword<cost>GOLD_INGOT:20<max_uses>2
416
  - STONE_SWORD:1<cost>EMERALD:5<max_uses>4
417
  - IRON_BLOCK:1<cost>EMERALD:1<cost>GOLD_INGOT:1
418
  - GOLD_BLOCK:1<cost>IRON_INGOT:10
419
  - EMERALD_BLOCK:1<cost>GOLD_INGOT:50
420
  - DIAMOND_BLOCK:1<cost>GOLD_INGOT:50<cost>EMERALD:50
421
  - LEVER:1
422
  - COBBLESTONE:1