Momshroom

Default MyCommand config

Sep 23rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 14.11 KB | None | 0 0
  1. #-----------------------------------------------------------------------------------------------------------#
  2. #                             MyCommand Commands config file (last update v5.2.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 , RUNCOMMAND_PERM_BROADCAST_TEXT , SPOUT_TEXT      #
  13. #       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION       #
  14. #       BAR_API_TEXT , BAR_API_BROADCAST_TEXT , RUN_CONSOLE_RANDOM  , CALL_URL, TITLE, BROADCAST_TITLE      #
  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. 'simple_dice':
  30.   command: /mycmd-dice
  31.   type: TEXT
  32.   text:
  33.  - '&0[&6Dice&0] &eYou got &6$rnd6 !'
  34.   permission-required: true
  35.   permission-node: mycommand.cmd.dice
  36.   permission-error: "&a$player! , &2You can't use this command!"
  37. 'tab_completer':
  38.   command: /greets
  39.   type: RUN_COMMAND
  40.   runcmd:
  41.  - /me $arg1
  42.   register: true
  43.   tab_completer:
  44.  - Hi
  45.   - Hello!
  46. 'shortcut':
  47.   command: /l
  48.   type: RUN_COMMAND
  49.   runcmd:
  50.  - '/list'
  51.   cost: 0
  52. 'colors':
  53.   command: /mycmd-colors
  54.   type: TEXT
  55.   text:
  56.  - "&11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
  57.   - "&nn&r &mm&r &ll&r &oo&r $random_color :D"
  58.   permission-required: false
  59. 'delay_example':
  60.   command: /mycmd-timer
  61.   type: RUN_COMMAND
  62.   runcmd:
  63.  - '$delay$/say 3..'
  64.   - '$delay$/say 2..'
  65.   - '$delay$/say 1..'
  66.   cost: 0
  67.   delaytimer: 1
  68.   delaytimer_format: SECONDS
  69. 'broadcast_example':
  70.   command: /mycmd-broadcast
  71.   type: BROADCAST_TEXT
  72.   text:
  73.  - '&eBroadcast message!&r $multiargs'
  74.   runcmd:
  75.  - '/sample'
  76.   cost: 0
  77.   delaytimer: 5
  78. 'run_by_console':
  79.   command: /mycmd-runconsole
  80.   type: RUN_CONSOLE
  81.   runcmd:
  82.  - /say This /say it's performed by console.
  83.   cost: 0
  84.   delaytimer: 5
  85. 'warmups_cooldowns_info':
  86.   command: /warmupsandcooldowns
  87.   type: TEXT
  88.   text:
  89.  - 'Put your command over /warmupsandcooldowns'
  90.   - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
  91.   - 'adjust the warmup and cooldowns time with delaytimer'
  92.   delaytimer: 5
  93. 'add_permission':
  94.   command: /mycmd-addpermission
  95.   type: ADDPERMISSION
  96.   text:
  97.  - '$6Overwrite an existing command permission, adding another permission here.'
  98.   cost: 0
  99.   delaytimer: 5
  100. 'text_various_args':
  101.   command: /mycmd-textargs
  102.   type: TEXT
  103.   text:
  104.   - '&2Player name : &a$player'
  105.   - '&2World : &a$world'
  106.   - '&2Health : &a$health &2Food : &a$food'
  107.   - '&2Exp : &a$exp &2Level : &a$level'
  108.   - '&2Gamemode : &a$gamemode'
  109.   - '&2LastDamage : &a$lastdamage'
  110. 'an_list_command':
  111.   command: /mycmd-online
  112.   type: TEXT
  113.   text:
  114.  - '&2There are &a$online &2players online.'
  115.   - '&a $ponline'
  116. clearchat:
  117.   command: /mycmd-clearchat
  118.   type: BROADCAST-TEXT
  119.   text:
  120.  - '%Repeat%30% '
  121. 'shortcut_with_multiargs':
  122.   command: /mycmd-shortcut
  123.   type: RUN_COMMAND
  124.   runcmd:
  125.  - '/say $multiargs'
  126.   cost: 0
  127.   delaytimer: 5
  128. 'random_example':
  129.   command: /rockpaperscissors
  130.   type: RUNCOMMAND_RANDOM
  131.   text:
  132.  - 'Rock-paper-scissors'
  133.   runcmd:
  134.  - '/me Rock!'
  135.   - '/me Paper!'
  136.   - '/me Scissors!'
  137. 'iconmenu_page1':
  138.   command: /iconmenu
  139.   type: ICON_MENU
  140.   text:
  141.  - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
  142.   - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT;LEVEL'
  143.   iconmenu_title: '&cMyCommand &4ItemMenu'
  144.   iconmenu_size: 27
  145.   iconmenu_commands:
  146.  - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
  147.   - '1:COMPASS;DAMAGE_ALL;1:0:/mycmd:Menu:MyCommand menu'
  148.   - '9:EMERALD:0:/list:Player List:&bShow online players'
  149.   - '10:WATCH:0:/time set 0:Day:Turn day'
  150.   - '26:WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
  151.   cost: 0
  152.   delaytimer: 5
  153. 'iconmenu_page2':
  154.   command: /iconmenu2
  155.   type: ICON_MENU
  156.   iconmenu_title: 'Page 2'
  157.   iconmenu_size: 9
  158.   iconmenu_commands:
  159.  - '0:GOLDEN_APPLE:0:Do something:Hello!:=)'
  160.   - '8:WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
  161.   cost: 0
  162.   delaytimer: 5
  163. 'help_page1':
  164.   command: /mycmd-help 1
  165.   type: TEXT
  166.   text:
  167.  - '$brightgreen ---- MyCommand Help Page One ---'
  168.   - '$gold Test Help 1'
  169.   runcmd:
  170.  - '/sample'
  171.   cost: 0
  172.   delaytimer: 5
  173. 'help_page0':
  174.   command: /mycmd-help
  175.   type: TEXT
  176.   text:
  177.  - '$brightgreen ---- MyCommand Help Main Page---'
  178.   - '$gold Test Help '
  179.   runcmd:
  180.  - '/sample'
  181.   cost: 0
  182.   delaytimer: 5
  183. 'itemcost_example':
  184.   command: /itemcostexample
  185.   type: TEXT
  186.   text:
  187.  - '$random_colorYou have spent 5 Cobblestone for run this command.'
  188.   runcmd:
  189.  - '/sample'
  190.   cost: 0
  191.   itemcost: 'COBBLESTONE:5'
  192.   delaytimer: 5
  193. 'scoreboard_example':
  194.   command: /sbtest
  195.   type: SCOREBOARD
  196.   text:
  197.  - 'Remove scoreboard after DelayTimer(sec) - 0 = never'
  198.   scoreboard_name: '&bTest'
  199.   scoreboard_text:
  200.  - '$randomnumber%1000%:Lucky'
  201.   - '$exp:Exp'
  202.   - '$level:Level'
  203.   cost: 0
  204.   delaytimer: 5
  205. 'bungeecord_example':
  206.   command: /bungeetest
  207.   type: BUNGEE_TP
  208.   server_name: hub
  209. 'allowed_worlds_example':
  210.   command: /onlynether
  211.   type: TEXT
  212.   text:
  213.  - "&cYea,The Nether!"
  214.   allowed_worlds:
  215.  - world_nether
  216. 'per_world_commands':
  217.   command: /perworldcommand
  218.   type: RUN_COMMAND
  219.   runcmd:
  220.  - "$world=%world%/me This command will be performed only if you are in the world"
  221.   - "$world=%world_nether%/me And this only if you are in the nether"
  222.   permission-required: false
  223. 'executefortest':
  224.   command: /executeforall
  225.   type: RUN_CONSOLE
  226.   executefor: ONLINE_PLAYERS
  227.   runcmd:
  228.  - "/tp $player 0 64 0"
  229.   permission-required: false
  230. 'ouch':
  231.   command: /ouch
  232.   type: RUN_COMMAND
  233.   runcmd:
  234.  - '%PlayerOptions%damage: 1'
  235.   - '$text$&c<3'
  236.   permission-required: false
  237. 'heal':
  238.   command: /mycmd-heal
  239.   type: RUN_COMMAND
  240.   runcmd:
  241.  - '%PlayerOptions%setHealth: 20'
  242.   - '%PlayerOptions%setFoodLevel: 20'
  243.   - '%PlayerOptions%sendMessage: &aHealed!'
  244.   permission-required: false
  245. 'world_guard_example':
  246.   command: /checkregion
  247.   type: TEXT
  248.   text:
  249.  - 'You are in $wgregionname region!'
  250.   allowed_wg_region:
  251.  - 'region_name_here'
  252. 'custom_cmd_cooldown':
  253.   command: /cooldown-example
  254.   type: TEXT
  255.   text:
  256.  - '&aBla bla bla, type the command again for see the cooldown effect.'
  257.   cooldown: 5
  258. 'call_url':
  259.   command: /call-url
  260.   type: CALL_URL
  261.   url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
  262.   get_output : true
  263.   show_output_ingame : true
  264.   save_output_as : httpResponse
  265. script_example:
  266.   command: /scriptexample1
  267.   type: RUN_COMMAND
  268.   runcmd:
  269.  - $Script$%if%$arg1==password
  270.   - $text$$random_colorRight!
  271.   - $Script$%if%$arg1==420
  272.   - $text$SWAG
  273.   - $Script$%else%
  274.   - $text$Password not correct
  275. bar_text:
  276.   command: /bar_example
  277.   type: BAR_API_TEXT
  278.   text:
  279.  - '&aHello $player'
  280.   bar_seconds: 5
  281.   bar_percentage: 8
  282.   bar_style: SEGMENTED_20
  283.   bar_flag: DARKEN_SKY
  284.   bar_color: PINK
  285. rawmessage_example:
  286.   command: /raw1
  287.   type: RAW_TEXT
  288.   text:
  289.  - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
  290.   - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
  291.   - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
  292.   - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
  293. lottery_example:
  294.   command: /lottery_example
  295.   type: RUN_COMMAND
  296.   runcmd:
  297.  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  298.   - '$text$&6Welcome to &eMyCommand &6Lottery!'
  299.   - '$delay$'
  300.   - '$text$&b+------------------------------------'
  301.   - '$text$&b| &2Prize of today :'
  302.   - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
  303.   - '$text$&b+------------------------------------'
  304.   - '$text$&ePlease wait for the results!'
  305.   - '$delay$$delay$$delay$'
  306.   - '$delay$$text$&0[$random_colorLottery&0] &65...'
  307.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  308.   - '$delay$$text$&0[$random_colorLottery&0] &64...'
  309.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  310.   - '$delay$$text$&0[$random_colorLottery&0] &63...'
  311.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  312.   - '$delay$$text$&0[$random_colorLottery&0] &62...'
  313.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  314.   - '$delay$$text$&0[$random_colorLottery&0] &61...'
  315.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  316.   - '$delay$'
  317.   - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
  318.   - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;GOLD_INGOT;BREAD;APPLE%'
  319.   - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
  320.   - '$delay$'
  321.   - '$text$&b+------------------------------------'
  322.   - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! '
  323.   - '$text$&b+------------------------------------'
  324.   - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
  325.   delaytimer: 1
  326. dailybonus:
  327.   command: /dailybonus
  328.   type: RUN_COMMAND
  329.   runcmd:
  330.  - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
  331.   - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
  332.   - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
  333.   - "%PlayerOptions%addItem: DIAMOND:1"
  334.   - "$Script$%PlayerData%DailyBonus=$todaydate"
  335.   - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
  336.   - "$Script$%else%"
  337.   - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
  338.   permission-required: false
  339. website:
  340.   command: /website
  341.   type: RAW_TEXT
  342.   text:
  343.  - '&b--------------------'
  344.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Website; &eClick to open;http://www.trekcraft.ca/'
  345.   - '&b--------------------'
  346.   permission-required: false
  347. store:
  348.   command: /store
  349.   type: RAW_TEXT
  350.   text:
  351.  - '&b--------------------'
  352.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Store; &eClick to open;http://www.trekcraft.ca/shop'
  353.   - '&b--------------------'
  354.   permission-required: false
  355. application:
  356.   command: /apply
  357.   type: RAW_TEXT
  358.   text:
  359.  - '&b--------------------'
  360.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Applications; &eClick to open;http://www.trekcraft.ca/application'
  361.   - '&b--------------------'
  362.   permission-required: false
  363. forums:
  364.   command: /forums
  365.   type: RAW_TEXT
  366.   text:
  367.  - '&b--------------------'
  368.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Forums; &eClick to open;http://www.trekcraft.ca/forums'
  369.   - '&b--------------------'
  370.   permission-required: false
  371. instagram:
  372.   command: /instagram
  373.   type: RAW_TEXT
  374.   text:
  375.  - '&b--------------------'
  376.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Instagram; &eClick to open;https://www.instagram.com/trekcraft/'
  377.   - '&b--------------------'
  378.   permission-required: false
  379. memberplus:
  380.   command: /member+
  381.   type: RAW_TEXT
  382.   text:
  383.  - '&b--------------------'
  384.   - '$OPEN_URL$&0[&e*&0]$random_color Open Member+ Guide; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewthread/26371690-how-to-get-member-rank-by-oreo'
  385.   - '&b--------------------'
  386.   permission-required: false
  387. guides:
  388.   command: /guides
  389.   type: RAW_TEXT
  390.   text:
  391.  - '&b--------------------'
  392.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Guides; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewforum/6894130'
  393.   - '&b--------------------'
  394.   permission-required: false
  395. bans:
  396.   command: /bans
  397.   type: RAW_TEXT
  398.   text:
  399.  - '&b--------------------'
  400.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Bans; &eClick to open;http://trekcraftmc.com/index.php'
  401.   - '&b--------------------'
  402.   permission-required: true
  403.   permission-node: mycommand.cmd.bans
  404.   permission-error: "&a$player! , &2You can't use this command!"
  405. helplist:
  406.   command: /helplist
  407.   type: RAW_TEXT
  408.   text:
  409.  - '&b--------------------'
  410.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Guides; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewforum/6894130'
  411.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Instagram; &eClick to open;https://www.instagram.com/trekcraft/'
  412.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Forums; &eClick to open;http://www.trekcraft.ca/forums'
  413.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Store; &eClick to open;http://www.trekcraft.ca/shop'
  414.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Website; &eClick to open;http://www.trekcraft.ca/'
  415.   - '$OPEN_URL$&0[&e*&0]$random_color Open TC Applications; &eClick to open;http://www.trekcraft.ca/application'
  416.   - '$OPEN_URL$&0[&e*&0]$random_color Open Member+ Guide; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewthread/26371690-how-to-get-member-rank-by-oreo'
  417.   - '&b--------------------'
  418.   permission-required: false
Add Comment
Please, Sign In to add comment