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