Advertisement
Guest User

examples

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