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

Problem z ChestCommands


Korsacz

Rekomendowane odpowiedzi

Opublikowano

Witam,

Mam problem z pluginem Chest Commands, gdyż nie mogę go skonfigurować, np. gdy zmieniam na 6 roofs albo na inny item. Po zapisaniu pliku i restarcie serwera dalej nie działa, tak jak ustawiłem. Może zaproponujecie inny plugin, albo pomożecie?

Jeżeli chcesz uzyskać szybszą pomoc, to wbijaj na Discord pomocy technicznej:   https://discord.gg/6GvT6EZ

Opublikowano

######################
#+                  +#
#   MENU SETTINGS    #
#+                  +#
######################

menu-settings:

  # REQUIRED
  # Appears as the title of the menu.
  name: '&1Example menu'

  # REQUIRED
  # The number of rows in the menu.
  rows: 6

  # OPTIONAL (you can remove this or set it to '')
  # Bind multiple commands using ; (command: 'menu; m; me')
  command: 'menu'

  # OPTIONAL
  # How frequently the menu will be refreshed, in seconds.
  # Useful if you have variables in items' descriptions.
  auto-refresh: 5

  # OPTIONAL
  # This command command will be executed when the menu is opened.
  # Supports all the icon command types.
  open-action: 'tell: &eYou opened the example menu.'

  # OPTIONAL
  # The menu will open only when right-clicking with a compass.
  open-with-item:
    id: wool:1
    left-click: false
    right-click: true


######################
#+                  +#
#       ITEMS        #
#+                  +#
######################


spawncmd:
  COMMAND: 'spawn'
  NAME: '&eHUB'
  LORE:
    - 'It justs executes /spawn'
    - 'as the player who clicked.'
  ID: enderpearl
  POSITION-X: 1
  POSITION-Y: 1


durability-armor:
  NAME: '&aDamaged armor'
  LORE:
    - 'This armor is damaged.'
  ID: diamond helmet
  DATA-VALUE: 200
  POSITION-X: 2
  POSITION-Y: 1


enchanted-sword:
  NAME: '&aEnchanted sword'
  LORE:
    - 'This sword is glowing.'
  ID: diamond sword
  ENCHANTMENT: durability, 1
  POSITION-X: 3
  POSITION-Y: 1


some-arrows:
  NAME: '&aSome arrows'
  LORE:
    - 'You can set the amount of items to display.'
  ID: arrow
  AMOUNT: 5
  POSITION-X: 4
  POSITION-Y: 1


test-from-console:
  COMMAND: 'console: say Hello {player}!'
  NAME: '&cRuns command from the console.'
  LORE:
    - 'It broadcasts your name with the command /say.'
  ID: command block
  POSITION-X: 5
  POSITION-Y: 1


test-as-op:
  COMMAND: 'op: say Hello world!'
  NAME: '&cRuns command as OP.'
  LORE:
    - 'Be careful with this type of commands.'
    - 'It will ignore nearly all the permissions.'
  ID: command block
  POSITION-X: 6
  POSITION-Y: 1


test-with-placeholder:
  COMMAND: 'tell: &9Online players: &f{online}/{max_players}; tell: &9Your name: &f{player}; tell: &9The world you are in: &f{world}; tell: &9Money: &f{money}'
  NAME: '&6This message contains some placeholders'
  LORE:
    - 'Placeholders will be replaced when the item'
    - 'is clicked.'
  ID: water bucket
  POSITION-X: 7
  POSITION-Y: 1


economy-give:
  COMMAND: 'tell: &aYou have paid 50$ for this command!; give: gold_ingot'
  NAME: '&eEconomy & Give command'
  LORE:
    - 'This command will be executed'
    - 'only if you have at least 50$!'
    - 'It gives you a gold ingot.'
  ID: gold ingot
  PRICE: 50
  POSITION-X: 8
  POSITION-Y: 1


economy-take:
  REQUIRED-ITEM: 'gold_ingot'
  COMMAND: 'tell: &aYou have been paid 50$; givemoney: 50'
  NAME: '&eEconomy & Required item'
  LORE:
    - 'This command is the opposite of the previous.'
    - 'It will take you a gold ingot and give you $50.'
  ID: gold ingot
  POSITION-X: 9
  POSITION-Y: 1


formatting-codes:
  NAME: '&dFormatting codes'
  LORE:
    - 'You can use all the formatting codes!'
    - '&fColors: &c#c &a#a &9#9 &e#e &f... ...'
    - '&fRandom (#k): &kfy379!H'
    - '&fBold (#l): &lexample'
    - '&fStrikethrough (#m): &mexample'
    - '&fUnderline (#n): &nexample'
    - '&fItalic (#o): &oexample'
  ID: paper
  POSITION-X: 1
  POSITION-Y: 2


will-not-close:
  NAME: '&2Info'
  LORE:
    - '&7The menu will not close'
    - '&7clicking on this item.'
  ID: sign
  KEEP-OPEN: true
  POSITION-X: 2
  POSITION-Y: 2


talking-fish:
  COMMAND: 'tell: This is a simple message, without using commands!'
  NAME: '&3Tells you something.'
  LORE:
    - '&7It tells you something without commands.'
  ID: torch
  POSITION-X: 3
  POSITION-Y: 2


test-multiple-command:
  COMMAND: 'console: Say Did you know that...; console: say you can run multiple commands?;'
  NAME: '&aMultiple commands'
  LORE:
    - 'Example of multiple commands.'
  ID: golden apple
  POSITION-X: 4
  POSITION-Y: 2


permission:
  COMMAND: 'tell: &a[v] You have the correct permission!'
  NAME: '&8Permission test'
  LORE:
    - 'To use this item, you need the'
    - 'permission "chestcommands.test".'
    - 'Otherwise, a configurable error'
    - 'message will be displayed.'
  ID: iron bars
  POSITION-X: 5
  POSITION-Y: 2
  PERMISSION: chestcommands.test
  PERMISSION-MESSAGE: 'You don''t have the correct permission!'


nbt-tags:
  NAME: '&aUsing NBT tags'
  LORE:
    - 'This item was colored using custom NBT tags.'
    - 'All NBT tags valid in Minecraft can be used.'
  ID: leather chestplate
  NBT-DATA: '{display: {color: 8910400}}'
  POSITION-X: 6
  POSITION-Y: 2


menu-close-no-commands-no-lore:
  NAME: '&6Close the menu'
  ID: redstone lamp
  LORE:
    - 'Create an item without command,'
    - 'the GUI will just close.'
  POSITION-X: 9
  POSITION-Y: 3

Chciałbym zrobić zegar, z trybami, bo to jest serwer minigames 1.10.2 spingot

 

Jeżeli chcesz uzyskać szybszą pomoc, to wbijaj na Discord pomocy technicznej:   https://discord.gg/6GvT6EZ

Opublikowano
menu-close-no-commands-no-lore:
  NAME: '&6Close the menu'
  ID: redstone lamp
  LORE:
    - 'Create an item without command,'
    - 'the GUI will just close.'
  POSITION-X: 9
  POSITION-Y: 3

Czy ID nie powinno być liczbą? Albo przynajmniej pomiędzy przedmiotem z dwoma słowami nie powinno być " _ "?
Wpisz "ID numerowe". Możliwe że się wtedy uda. Jeśli się mylę może być to spowodowane przez POSITION-X: 9. Jak mi wiadomo (choć piszę to z pamięci) to się liczy od zera więc "9" wykracza poza skale. Spróbuj wpisać 8 w miejsca X:9

EDIT:
 

   - 'permission "chestcommands.test".'

Wydaje mi się że nie powinieneś używać " w tekście, jednak to tylko moje teorie. Sprawdź to.

Aha, i prosiłbym żebyś wklejał config do:

tego

Jest to czytelniejsze, a jeśli dasz to jeszcze pod Spoiler (tym się chowa/odkrywa wybrany tekst ) będzie ładnie wyglądało, będzie czytalniejsze i nie będzie się ciężko przewijało w dół. Wszystkie te opcje są podczas pisania komentarza na górze na pasku.

Opublikowano

Jednak ja nic nie edytowałem prócz rows, bo drugi raz go zainstalowłem, gdyż tam zmieniałem i ID i różne takie, ale nie działało to myślałem, że coś się źle załadowało.

Jeśli masz chwilę to wejdź na mój serwer

 

Jeżeli chcesz uzyskać szybszą pomoc, to wbijaj na Discord pomocy technicznej:   https://discord.gg/6GvT6EZ

Opublikowano

Nie zbyt mam czas, spróbuj wkleić to na górze:
 

Spoiler

  # REQUIRED
  # Appears as the title of the menu.
  name: ''

  # REQUIRED
  # The number of rows in the menu.
  rows: 6

  # OPTIONAL (you can remove this or set it to '')
  # Bind multiple commands using ; (command: 'menu; m; me')
  command: ''

  # OPTIONAL
  # How frequently the menu will be refreshed, in seconds.
  # Useful if you have variables in items' descriptions.
  auto-refresh: 5

  # OPTIONAL
  # This command command will be executed when the menu is opened.
  # Supports all the icon command types.
  open-action: ''

  # OPTIONAL
  # The menu will open only when right-clicking with a compass.
  open-with-item:
    id: 345
    left-click: false
    right-click: false

 

nic nie edytuj, sprawdź czy "6 rows" działa.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...