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