Advertisement
JediLuke_HD

Untitled

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