View difference between Paste ID: PfUbbmhE and rwMpa82g
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-
  - 26:LEGACY_WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->
196+
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
  - 17:BOOK:0:/discord:&dDiscord:&eUnser Discord!
203
  - 18:COMPASS:0:/playerinfo:&5Infos:&eZeigt deine Infos!
204
  - 26:NAME_TAG:0:/wartungen:&cComming Soon:&cComming soon!
205
  cost: 0
206
  delaytimer: 5
207
iconmenu_page2:
208
  command: /iconmenu2
209
  type: ICON_MENU
210
  iconmenu_title: 'Page 2'
211
  iconmenu_size: 9
212
  iconmenu_commands:
213
  - '0:LEGACY_GOLDEN_APPLE:0:Do something:Hello!:=)'
214
  - '8:LEGACY_WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
215
  cost: 0
216
  delaytimer: 5
217
help_page_0:
218
  command: /mycmd-help
219
  type: TEXT
220
  text:
221
  - '&a ---- &6MyCommand Help &eMain Page &a----'
222
  - '&e This is the Main page of the help '
223
  - '&e Type &6/mycmd-help 2 &efor see the second page'
224
help_page_1:
225
  command: /mycmd-help 2
226
  type: TEXT
227
  text:
228
  - '&a ---- &6MyCommand Help &ePage two &a----'
229
  - '&e And this is the page two of the help'
230
itemcost_example:
231
  command: /itemcostexample
232
  type: TEXT
233
  text:
234
  - '$random_colorYou have spent 5 Cobblestone for see this message.'
235
  itemcost: 'COBBLESTONE:5'
236
scoreboard_example:
237
  command: /sbexample
238
  type: SCOREBOARD
239
  text:
240
  - The Scoreboard will get removed after DelayTimer(sec). If 0 don't remove
241
  - Use $marquee$ as a prefix of the scoreboard name for scroll the text.
242
  - Use scoreboard_refresh_ticks, for determinate how frequent the plugin have to update the scoreboard.
243
  scoreboard_name: "$marquee$&1M&2y&3C&4o&5m&6m&7a&8n&9d &aS&bc&co&dr&ee&fb&0o&1a&2r&3d &nExample&r "
244
  scoreboard_text:
245
  - "4;&c&lCoordinates:"
246
  - "3;&6X:&e $locX &6Y:&e $locY &6Z:&e $locZ "
247
  - "2;&c&lPlayer Info:"
248
  - "1;&6Health: &e$health"
249
  - "0;&6Food: &e$food"
250
  scoreboard_refresh_ticks: 5
251
  delaytimer: 10
252
bungeecord_example:
253
  command: /bungeetest
254
  type: BUNGEE_TP
255
  server_name: hub
256
allowed_worlds_example:
257
  command: /onlynether
258
  type: TEXT
259
  text:
260
  - "&cYea,The Nether!"
261
  allowed_worlds:
262
  - world_nether
263
per_world_commands:
264
  command: /perworldcommand
265
  type: RUN_COMMAND
266
  runcmd:
267
  - "$world=%world%/me This command will be performed only if you are in the world"
268
  - "$world=%world_nether%/me And this only if you are in the nether"
269
  permission-required: false
270
executefor_example:
271
  command: /executeforall
272
  type: RUN_CONSOLE
273
  executefor: ONLINE_PLAYERS
274
  runcmd:
275
  - "/tp $player 0 64 0"
276
  permission-required: false
277
ouch:
278
  command: /ouch
279
  type: RUN_COMMAND
280
  runcmd:
281
  - '%PlayerOptions%damage: 1'
282
  - '$text$&c<3'
283
  permission-required: false
284
heal_me:
285
  command: /mycmd-heal
286
  type: RUN_COMMAND
287
  runcmd:
288
  - '%PlayerOptions%setHealth: 20'
289
  - '%PlayerOptions%setFoodLevel: 20'
290
  - '%PlayerOptions%sendMessage: &aHealed!'
291
  permission-required: false
292
world_guard_example:
293
  command: /checkregion
294
  type: TEXT
295
  text:
296
  - 'You are in $wgregionname region!'
297
  allowed_wg_region:
298
  - 'region_name_here'
299
custom_cmd_cooldown:
300
  command: /cooldown-example
301
  type: TEXT
302
  text:
303
  - '&aBla bla bla, type the command again for see the cooldown effect.'
304
  cooldown: 5
305
custom_cmd_warmup:
306
  command: /warmup-example
307
  type: TEXT
308
  text:
309
  - '&aYou have waited 5 second for see this command performed'
310
  warmup: 5
311
call_url:
312
  command: /call-url
313
  type: CALL_URL
314
  url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
315
  get_output : true
316
  show_output_ingame : true
317
  save_output_as : httpResponse
318
script_example_420:
319
  command: /example420
320
  type: RUN_COMMAND
321
  runcmd:
322
  - $Script$%if%$arg1==password
323
  - $text$&eRight!
324
  - $Script$%if%$arg1==420
325
  - $text$&aBLAZE IT
326
  - $Script$%else%
327
  - $text$Password not correct
328
bar_text:
329
  command: /bar_example
330
  type: BAR_API_TEXT
331
  text:
332
  - '&aHello $random_color$player'
333
  bar_seconds: 5
334
  bar_percentage: 8
335
  bar_style: SEGMENTED_20
336
  bar_flag: DARKEN_SKY
337
  bar_color: PINK
338
rawmessage_example:
339
  command: /raw-example
340
  type: RAW_TEXT
341
  text:
342
  - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
343
  - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
344
  - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
345
  - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
346
lottery_example:
347
  command: /lottery_example
348
  type: RUN_COMMAND
349
  runcmd:
350
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
351
  - '$text$&6Welcome to &eMyCommand &6Lottery!'
352
  - '$delay$'
353
  - '$text$&b+------------------------------------'
354
  - '$text$&b| &2Prize of today :'
355
  - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
356
  - '$text$&b+------------------------------------'
357
  - '$text$&ePlease wait for the results!'
358
  - '$delay$$delay$$delay$'
359
  - '$delay$$text$&0[$random_colorLottery&0] &65...'
360
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
361
  - '$delay$$text$&0[$random_colorLottery&0] &64...'
362
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
363
  - '$delay$$text$&0[$random_colorLottery&0] &63...'
364
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
365
  - '$delay$$text$&0[$random_colorLottery&0] &62...'
366
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
367
  - '$delay$$text$&0[$random_colorLottery&0] &61...'
368
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
369
  - '$delay$'
370
  - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
371
  - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;LEGACY_GOLD_INGOT;BREAD;APPLE%'
372
  - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
373
  - '$delay$'
374
  - '$text$&b+------------------------------------'
375
  - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! ' 
376
  - '$text$&b+------------------------------------'
377
  - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
378
  delaytimer: 1
379
dailybonus:
380
  command: /dailybonus
381
  type: RUN_COMMAND
382
  runcmd:
383
  - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
384
  - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
385
  - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
386
  - "%PlayerOptions%addItem: DIAMOND:1"
387
  - "$Script$%PlayerData%DailyBonus=$todaydate"
388
  - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
389
  - "$Script$%else%"
390
  - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
391
  permission-required: false
392
broadcast_message_with_perm:
393
  command: /brmsgwithperm
394
  type: BROADCAST_TEXT
395
  text:
396
  - "Only the player with the correct permission can see this message"
397
  broadcast_message_permission_node: permission.for.see.this.message
398
dynamiciconmenu:
399
  command: /dynamiciconmenu
400
  type: ICON_MENU
401
  iconmenu_size: 36
402
  iconmenu_mode: DYNAMIC
403
  permission-required: false
404
  iconmenu_commands:
405
  - "0:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
406
  - "1:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
407
  - "2:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
408
  - "3:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
409
  - "4:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
410
  - "5:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
411
  - "6:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
412
  - "7:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
413
  - "8:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
414
  - "9:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
415
  - "11:CLOCK:0:%stayopen%:&aServer time - $random_color$time:&bToday Date - &6 $todaydate"
416
  - "13:BEACON:0:/mycmd:&6MyCommand:&eLaunch MyCommand"
417
  - "15:ENDER_PEARL<next>ENDER_EYE<next>AIR:0:%stayopen%:???<next>!!!<next>AIR: "
418
  - "17:YELLOW_WOOL<next>LIME_WOOL:4:/command_example: : "
419
  - "18:LIME_WOOL<next>YELLOW_WOOL:5:/command_example: : "
420
  - "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"
421
  - "22:1,IRON_CHESTPLATE<next>GOLDEN_CHESTPLATE;PROTECTION_ENVIRONMENTAL;1<next>DIAMOND_CHESTPLATE;PROTECTION_EXPLOSIONS;3:0:/command_example::Description;Line 2..."
422
  - "25:BARRIER:0:%close%:Close this menu:&cClick here;&cto close"
423
  - "26:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
424
  - "27:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
425
  - "28:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
426
  - "29:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
427
  - "30:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
428
  - "31:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
429
  - "32:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
430
  - "33:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
431
  - "34:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
432
  - "35:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
433
  delaytimer: 2
434
holographic_example:
435
  command: /holoexample
436
  type: HOLOGRAPHIC_TEXT
437
  text:
438
  - "&eHello $player, how are you?"
439
  - "$random_coloryeah, i'm fineeeee thanks!"
440
  - "&dCurrent time &5$time"
441
  delaytimer: 3
442
merchant_example:
443
  command: /mymerchant
444
  type: MERCHANT
445
  merchant_title: '&3Hello &b$player'
446
  merchant_items:
447
  - STONE_SWORD:1:0:DAMAGE_ALL;1;FIRE_ASPECT;1:&3Old Sword:&bA very old sword<cost>GOLD_INGOT:20<max_uses>2
448
  - STONE_SWORD:1<cost>EMERALD:5<max_uses>4
449
  - IRON_BLOCK:1<cost>EMERALD:1<cost>GOLD_INGOT:1
450
  - GOLD_BLOCK:1<cost>IRON_INGOT:10
451
  - EMERALD_BLOCK:1<cost>GOLD_INGOT:50
452
  - DIAMOND_BLOCK:1<cost>GOLD_INGOT:50<cost>EMERALD:50
453
  - LEVER:1
454
  - COBBLESTONE:1