RokiJack1326

Newmycmd2

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