Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Gotowy config pluginu MyCommand


Omlet1122

Rekomendowane odpowiedzi

Opublikowano

Witam ma ktoś gotowy MyCommand ? na wersje 1.12.2 ? Obojętnie jaki,bo na podstawie wzoru chciałbym się nauczyć jak dodawać własne komendy.

 

Wersja MyCommand:

 MyCommand Commands config file (last update v5.5.0)   

 

  • sk8erace1 zmienił(a) tytuł na Gotowy config MyCommand 1.12.2
  • sk8erace1 zmienił(a) tytuł na Gotowy config pluginu MyCommand
  • 1 miesiąc temu...
Opublikowano
Cytat

#-----------------------------------------------------------------------------------------------------------#
#                              MyCommand Commands config file (last update v5.5.0)                            #
#                                                                                                            #
#  BukkitDev Help page : https://dev.bukkit.org/projects/mycommand/pages/getstarted                            #
#                                                                                                            #
#    How to make a command :    (See an example command below)                                                    #
#        For first, put your command name on first line                                                      #
#        Now put your command_line name after the "command:" line. Don't forget the '/' before your command.    #
#        So, now select your command type from a predefined list putting it after "type" line                #
#    COMMAND TYPE LIST :                                                                                        #
#        TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT            #
#        ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUN_CONSOLE_RANDOM , SPOUT_TEXT                    #
#       RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION        #
#        BAR_API_TEXT , BAR_API_BROADCAST_TEXT , CALL_URL, TITLE, BROADCAST_TITLE, ACTION_BAR                #
#                                                                                                            #
#    If your command is "TEXT" type, you can put multiple line of text below this parameter                    #
#    You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list    #
#    For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list                #
#    Set delay time with delaytimer: 5 (5 = seconds) |                                                         #
#   If you are using the Vault plugin, you can put the "cost: 123.0" with this line.                         #
#    You can customize your permission node by placing "permission-node:" field in a command                    #
#    Also,you can change the permission error message with "permission-error:"                                #
#   Custom error-message for invalid args ,put "error-message:" line in a command.                            #
#   You can use itemcost : 'ID:AMOUNT' for set a cost with items.                                             #
#   Register REAL commands putting "register: true" below the command.                                         #
#   With register commands you can use the "tab_completer: - Hi - Hello!"                                    #
#   For Scripts and more features, find more on the bukkitdev page                                            #
#-----------------------------------------------------------------------------------------------------------#
## IP MOJEGO SERWERA: STORMACE.ATERNOS.ME ##

staty:
  command: /staty
  type: ALIAS
  alias: /statz list
  permission-required: false
sprawdz:
  command: /sprawdz
  type: ALIAS
  alias: /check
  permission-required: true
  permission-node: stormace.sprawdz
  permission-error: "&6&lStorm&e&lAce &e» &cNie posiadasz uprawnien!"
gracze:
  command: /gracze
  type: ALIAS
  alias: /admin
  permission-required: true
  permission-node: stormace.gracze
  permission-error: "&6&lStorm&e&lAce &e» &cNie posiadasz uprawnien!"
kontakt:
  command: /kontakt
  type: ALIAS
  alias: /ac
  permission-required: false
plecak:
  command: /plecak
  type: ALIAS
  alias: /kpack
  permission-required: false
report:
  command: /zglos
  type: ALIAS
  alias: /report
  permission-required: false
plac:
  command: /plac
  type: ALIAS
  alias: /pay
  permission-required: false
challenge:
  command: /zadania
  type: ALIAS
  alias: /c
  permission-required: false
kasa:
  command: /kasa
  type: ALIAS
  alias: /money
  permission-required: false
wymiana:
  command: /wymiana
  type: ALIAS
  alias: /trade
  permission-required: false
gamemode:
  command: /gm
  type: ALIAS
  alias: /gamemode
  permission-required: true
  permission-node: stormace.gm
  permission-error: "&6&lStorm&e&lAce &e» &cNie posiadasz uprawnien!"
test:
  command: /test
  type: TEXT
  text:
  - '&6&lStorm&e&lAce &e» &7OK :)'
  permission-required: false
lista:
  command: /l
  type: RUN_COMMAND
  runcmd:
  - '/list'
  cost: 0
kolory:
  command: /kolory
  type: TEXT
  text:
  - "&6&lStorm&e&lAce &e» &11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
  - "&nn&r &mm&r &ll&r &oo&r&7, koniec."
  permission-required: false
dzien:
  command: /d
  type: RUN_COMMAND
  runcmd:
  - '/time set day'
  cost: 0
  error-message: '&6&lStorm&e&lAce &e» &cNie posiadasz uprawnien!'
  require_all_arguments: true
odliczanie:
  command: /odliczanie
  type: RUN_COMMAND
  runcmd:
  - '$delay$$broadcasttext$&6&lStorm&e&lAce &e» $random_color3..'
  - '$delay$$broadcasttext$&6&lStorm&e&lAce &e» $random_color2..'
  - '$delay$$broadcasttext$&6&lStorm&e&lAce &e» $random_color1..'
  - '$delay$$broadcasttext$&6&lStorm&e&lAce &e» &7Start!'
  cost: 0
  delaytimer: 1
  delaytimer_format: SECONDS
run_by_console:
  command: /mycmd-runconsole
  type: RUN_CONSOLE
  runcmd:
  - /say This message is getting performed by the console.
  cost: 0
warmups_cooldowns_info:
  command: /warmupsandcooldowns
  type: TEXT
  text:
  - 'Put your command over /warmupsandcooldowns'
  - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
  - 'adjust the warmup and cooldowns time with delaytimer'
  delaytimer: 5
add_permission:
  command: /command-to-override
  type: ADD_PERMISSION
  text:
  - '$6Add an extra permission to another existing command'
  permission-node: permission.name
  cost: 0
info:
  command: /informacje
  type: TEXT
  text:
  - '&6&lStorm&e&lAce &e» &7Nick: $player'
  - '&6&lStorm&e&lAce &e» &7Zycie: $health Jedzenie: $food'
  - '&6&lStorm&e&lAce &e» &7Exp: $exp Level: $level'
  - '&6&lStorm&e&lAce &e» &7Gamemode: $gamemode'
czyszczenie_chatu:
  command: /cc
  type: BROADCAST_TEXT
  text:
  - '%Repeat%100% '
  - '&6&lStorm&e&lAce &e» &7Chat zostal wyczyszczony przez $player.'
  - '&6&lStorm&e&lAce &e» &7Zyczymy milej gry!'
  permission-node: stormace.cc
  permission-error: "&6&lStorm&e&lAce &e» &cNie posiadasz uprawnien!"
menu:
  command: /menu
  type: ICON_MENU
  text:
  - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
  - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT_NAME;LEVEL'
  iconmenu_title: '&e&lMenu gracza.'
  iconmenu_size: 27
  iconmenu_commands:
  - 0:GOLDEN_APPLE:0:/help:&2&lPomoc:&a&lKliknij aby zobaczyc pomoc.
  - 9:EMERALD:0:/list:&2&lList:&a&lZobacz aktywnych graczy.
  - 10:LEGACY_WATCH:0:/time set 0:&2&lDzien:&a&lPrzywroc dzien.
  - 26:LEGACY_WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->
  cost: 0
  delaytimer: 5
help_page_0:
  command: /mycmd-help
  type: TEXT
  text:
  - '&a ---- &6MyCommand Help &eMain Page &a----'
  - '&e This is the Main page of the help '
  - '&e Type &6/mycmd-help 2 &efor see the second page'
help_page_1:
  command: /mycmd-help 2
  type: TEXT
  text:
  - '&a ---- &6MyCommand Help &ePage two &a----'
  - '&e And this is the page two of the help'
itemcost_example:
  command: /itemcostexample
  type: TEXT
  text:
  - '$random_colorYou have spent 5 Cobblestone for see this message.'
  itemcost: 'COBBLESTONE:5'
scoreboard_example:
  command: /sbexample
  type: SCOREBOARD
  text:
  - 'The Scoreboard will get removed after DelayTimer(sec). If 0 dont remove'
  - 'Use $marquee$ as a prefix of the scoreboard name for scroll the text.'
  - 'Use scoreboard_refresh_ticks, for determinate how frequent the plugin have to update the scoreboard.'
  scoreboard_name: "$marquee$&1M&2y&3C&4o&5m&6m&7a&8n&9d &aS&bc&co&dr&ee&fb&0o&1a&2r&3d &nExample&r "
  scoreboard_text:
  - "4;&c&lCoordinates:"
  - "3;&6X:&e $locX &6Y:&e $locY &6Z:&e $locZ "
  - "2;&c&lPlayer Info:"
  - "1;&6Health: &e$health"
  - "0;&6Food: &e$food"
  scoreboard_refresh_ticks: 5
  delaytimer: 10
allowed_worlds_example:
  command: /onlynether
  type: TEXT
  text:
  - "&cYea,The Nether!"
  allowed_worlds:
  - world_nether
per_world_commands:
  command: /perworldcommand
  type: RUN_COMMAND
  runcmd:
  - "$world=%world%/me This command will be performed only if you are in the world"
  - "$world=%world_nether%/me And this only if you are in the nether"
  permission-required: false
executefor_example:
  command: /executeforall
  type: RUN_CONSOLE
  executefor: ONLINE_PLAYERS
  runcmd:
  - "/tp $player 0 64 0"
  permission-required: false
ouch:
  command: /ouch
  type: RUN_COMMAND
  runcmd:
  - '%PlayerOptions%damage: 1'
  - '$text$&c<3'
  permission-required: false
heal_me:
  command: /mycmd-heal
  type: RUN_COMMAND
  runcmd:
  - '%PlayerOptions%setHealth: 20'
  - '%PlayerOptions%setFoodLevel: 20'
  - '%PlayerOptions%sendMessage: &aHealed!'
  permission-required: false
world_guard_example:
  command: /checkregion
  type: TEXT
  text:
  - 'You are in $wgregionname region!'
  allowed_wg_region:
  - 'region_name_here'
custom_cmd_cooldown:
  command: /cooldown-example
  type: TEXT
  text:
  - '&aBla bla bla, type the command again for see the cooldown effect.'
  cooldown: 5
custom_cmd_warmup:
  command: /warmup-example
  type: TEXT
  text:
  - '&aYou have waited 5 second for see this command performed'
  warmup: 5
call_url:
  command: /call-url
  type: CALL_URL
  url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
  get_output : true
  show_output_ingame : true
  save_output_as : httpResponse
script_example_420:
  command: /example420
  type: RUN_COMMAND
  runcmd:
  - $Script$%if%$arg1==password
  - $text$&eRight!
  - $Script$%if%$arg1==420
  - $text$&aBLAZE IT
  - $Script$%else%
  - $text$Password not correct
bar_text:
  command: /bar_example
  type: BAR_API_TEXT
  text:
  - '&aHello $random_color$player'
  bar_seconds: 5
  bar_percentage: 8
  bar_style: SEGMENTED_20
  bar_flag: DARKEN_SKY
  bar_color: PINK
rawmessage_example:
  command: /raw-example
  type: RAW_TEXT
  text:
  - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
  - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
  - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
  - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
lottery_example:
  command: /lottery_example
  type: RUN_COMMAND
  runcmd:
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$text$&6Welcome to &eMyCommand &6Lottery!'
  - '$delay$'
  - '$text$&b+------------------------------------'
  - '$text$&b| &2Prize of today :'
  - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
  - '$text$&b+------------------------------------'
  - '$text$&ePlease wait for the results!'
  - '$delay$$delay$$delay$'
  - '$delay$$text$&0[$random_colorLottery&0] &65...'
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$delay$$text$&0[$random_colorLottery&0] &64...'
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$delay$$text$&0[$random_colorLottery&0] &63...'
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$delay$$text$&0[$random_colorLottery&0] &62...'
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$delay$$text$&0[$random_colorLottery&0] &61...'
  - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  - '$delay$'
  - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
  - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;LEGACY_GOLD_INGOT;BREAD;APPLE%'
  - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
  - '$delay$'
  - '$text$&b+------------------------------------'
  - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! ' 
  - '$text$&b+------------------------------------'
  - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
  delaytimer: 1
dailybonus:
  command: /dailybonus
  type: RUN_COMMAND
  runcmd:
  - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
  - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
  - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
  - "%PlayerOptions%addItem: DIAMOND:1"
  - "$Script$%PlayerData%DailyBonus=$todaydate"
  - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
  - "$Script$%else%"
  - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
  permission-required: false
broadcast_message_with_perm:
  command: /brmsgwithperm
  type: BROADCAST_TEXT
  text:
  - "Only the player with the correct permission can see this message"
  broadcast_message_permission_node: permission.for.see.this.message
dynamiciconmenu:
  command: /dynamiciconmenu
  type: ICON_MENU
  iconmenu_size: 36
  iconmenu_mode: DYNAMIC
  permission-required: false
  iconmenu_commands:
  - "0:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "1:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "2:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "3:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "4:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "5:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "6:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "7:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "8:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "9:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "11:CLOCK:0:%stayopen%:&aServer time - $random_color$time:&bToday Date - &6 $todaydate"
  - "13:BEACON:0:/mycmd:&6MyCommand:&eLaunch MyCommand"
  - "15:ENDER_PEARL<next>ENDER_EYE<next>AIR:0:%stayopen%:???<next>!!!<next>AIR: "
  - "17:YELLOW_WOOL<next>LIME_WOOL:4:/command_example: : "
  - "18:LIME_WOOL<next>YELLOW_WOOL:5:/command_example: : "
  - "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"
  - "22:1,IRON_CHESTPLATE<next>GOLDEN_CHESTPLATE;PROTECTION_ENVIRONMENTAL;1<next>DIAMOND_CHESTPLATE;PROTECTION_EXPLOSIONS;3:0:/command_example::Description;Line 2..."
  - "25:BARRIER:0:%close%:Close this menu:&cClick here;&cto close"
  - "26:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "27:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "28:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "29:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "30:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "31:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "32:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "33:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  - "34:LIME_WOOL<next>YELLOW_WOOL:5:%stayopen%: : "
  - "35:YELLOW_WOOL<next>LIME_WOOL:4:%stayopen%: : "
  delaytimer: 2
holographic_example:
  command: /holoo
  type: HOLOGRAPHIC_TEXT
  text:
  - "&eWitam $player, co tam u Ciebie?"
  - "$random_coloryeah, aaa calkiem niezle ;p"
  - "&dGodzina: &5$time"
  delaytimer: 3
merchant_example:
  command: /mymerchant
  type: MERCHANT
  merchant_title: '&3Hello &b$player'
  merchant_items:
  - STONE_SWORD:1:0:DAMAGE_ALL;1;FIRE_ASPECT;1:&3Old Sword:&bA very old sword<cost>GOLD_INGOT:20<max_uses>2
  - STONE_SWORD:1<cost>EMERALD:5<max_uses>4
  - IRON_BLOCK:1<cost>EMERALD:1<cost>GOLD_INGOT:1
  - GOLD_BLOCK:1<cost>IRON_INGOT:10
  - EMERALD_BLOCK:1<cost>GOLD_INGOT:50
  - DIAMOND_BLOCK:1<cost>GOLD_INGOT:50<cost>EMERALD:50
  - LEVER:1
  - COBBLESTONE:1

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...