Помогите Chestcommands // как сделать одноразовое взятие?

  • Автор темы Автор темы ArtDuma
  • Дата начала Дата начала

ArtDuma

Участник
Баллы
31
Ник в Minecraft
Arthur_Duma
Привет, я создал систему промокодов, и хотелось бы узнать как сделать одноразовое взятие?

Код:
######################
#+                  +#
#     #
#+    +#
######################

menu-settings:

  # REQUIRED
  # Appears as the title of the menu.
  name: '&b&lПромокоды'

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

  # OPTIONAL
  # Set which commands a player can execute to open the menu.
  commands:
  - 'promo'

  # OPTIONAL
  # How frequently the menu will be refreshed, in seconds.
  # Useful if you have placeholders in icon descriptions.
  auto-refresh: 4

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

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


######################
#+                  +#
#       ICONS        #
#+                  +#
######################


vip:
  MATERIAL: GOLD_ORE
  DURABILITY: 8
  POSITION-X: 1
  POSITION-Y: 1
  NAME: '&e&lkolos_2020 '
  LORE:
    - ''
    - 'Нажмите чтобы активировать промокод'
    - 'Данный промокод принадлежит ютуберу: &c&lKlinzir'
    - ''
  ACTIONS:
    - 'tell: Спасибо что активировали промокод'
    - 'give: iron_helmet'
    - 'give: iron_chestplate'
    - 'give: iron_leggings'
    - 'give: iron_boots'
    - 'give: iron_sword'
 
Выдавай в actions какое-нибудь право, и повесь проверку на право.
 
Назад
Верх Низ