• Trong thời gian này, bạn không thể tạo bài mới, đăng comment, hay tạo tài nguyên mới để diễn đàn dọn dẹp nội dung.
    Diễn đàn sẽ sớm mở trở lại, chi tiết hãy theo dõi tại Discord
ThinhDepTrai

Hỏi đáp Plugin Menu hiện ở thanh số

15125

Cho hỏi là plugin gì thế ạ
 
YAML:
#########################################
#                                       #
#       Command Items by Yamakaja       #
#                                       #
#########################################

# Note, item use requires the cmdi.item.<name> permission. I.e. to use the fly items you'll have to give the player cmdi.item.fly

items:
  fly:
    item:
      type: FEATHER
      name: "&a&lFlight token"
      lore: ["&1Click for 10 seconds of flight!", "&kRandom second line"]
      glow: true
    consumed: true
    cooldown: 20
    sneaking: true
    actions:
      - { action: COMMAND, by: CONSOLE, command: "fly {player} on" }
      - { action: MESSAGE, to: PLAYER, message: "&aFlight has been enabled!" }
      - { action: REPEAT, from: 9, to: 1, increment: -1, delay: 20, period: 20, actions: [{ action: MESSAGE, to: PLAYER, message: "&a{i}s to go" }]}
      - { action: WAIT, duration: 200, actions: [
          { action: COMMAND, by: CONSOLE, command: "fly {player} off" },
          { action: MESSAGE, to: PLAYER, message: "&cFlight has been disabled!" }
        ]}
  helpstick:
    item:
      type: STICK
      name: "&a&lHelp Stick"
      lore: ["&1Click to send a help request to moderators!"]
      glow: true
    consumed: false
    cooldown: 60
    actions:
      - { action: MESSAGE, to: PERMISSION, perm: group.moderator, message: "&6{player} &arequested help!" }
      - { action: MESSAGE, to: PLAYER, message: "&aModerators have been notified!" }
  xpparty:
    item:
      type: EXP_BOTTLE
      name: "&a&lEXP PARTY"
    consumed: true
    actions:
      - { action: REPEAT, period: 1, delay: 0, from: 0, to: 99, actions: [
          { action: ITER, what: ONLINE_PLAYERS, actions: [
            { action: CALC, a: "{iter_locY}", b: "4", op: ADD, target: "y", actions: [
              { action: COMMAND, by: CONSOLE, command: "minecraft:summon minecraft:xp_bottle {iter_locX} {y} {iter_locZ}" }]}]}]}
      - { action: MESSAGE, to: EVERYBODY, message: "&a&l{player} has started an XP party!" }
 
Cái của mình nói là nó gần gióng với cái của config skills của skillapi
15127
 

Đính kèm

  • 1563275016638.png
    1563275016638.png
    50.4 KB · Lượt xem: 41
CustomJoinItem

Muốn làm giống trong hình thì vào config chỉnh

DEMO giống ảnh'
Mã:
Prefix: '&8[ &aServerName &8]'
Command-Args0: '&cPlease, use this command /cjitem reload'
Reload-Message: '&aConfig.yml Reloaded....'
Permission-Error: '&cYou do not have enought permission!'
#If you want to use commands, then please use deluxemenus or chestcommands!
#recommended deluxemenus
Item:
  server_welcome:
    name:
   - '&6La Bàn'
    id: COMPASS
    enable: true
    permission: item.use // muốn cho dùng cái item hiện ra phải có lệnh thì để và add vào permision rank
    slot: 8 // là số thứ tự (1->9) , trong ảnh trên số thứ tự là 8
    Command: 'say Viet lenh vao day!' // Câu lệnh khi cầm trên tay item này và ấn
    CommandSender: player // ai dùng lệnh (player , server , ...)
    lore:
   - '&7&m----------------------------'
    - '&r'
    - '&7Welcome &e<player> &7to the server'
    - '&r'
    - '&7OnlinePlayers: &a<online>&8/&4<max>'
    - ''
    - '&7&m----------------------------'
 
CustomJoinItem

Muốn làm giống trong hình thì vào config chỉnh

DEMO giống ảnh'
Mã:
Prefix: '&8[ &aServerName &8]'
Command-Args0: '&cPlease, use this command /cjitem reload'
Reload-Message: '&aConfig.yml Reloaded....'
Permission-Error: '&cYou do not have enought permission!'
#If you want to use commands, then please use deluxemenus or chestcommands!
#recommended deluxemenus
Item:
  server_welcome:
    name:
   - '&6La Bàn'
    id: COMPASS
    enable: true
    permission: item.use // muốn cho dùng cái item hiện ra phải có lệnh thì để và add vào permision rank
    slot: 8 // là số thứ tự (1->9) , trong ảnh trên số thứ tự là 8
    Command: 'say Viet lenh vao day!' // Câu lệnh khi cầm trên tay item này và ấn
    CommandSender: player // ai dùng lệnh (player , server , ...)
    lore:
   - '&7&m----------------------------'
    - '&r'
    - '&7Welcome &e<player> &7to the server'
    - '&r'
    - '&7OnlinePlayers: &a<online>&8/&4<max>'
    - ''
    - '&7&m----------------------------'
Tôi đã tính đi tự sát và ông là người cứ duỗi đời tôi ♥
 
Nội dung tương tự Xem nhiều nhất Xem thêm

Thống kê nội dung

Tạo
ThinhDepTrai,
Trả lời lần cuối từ
D2K Fake,
Trả lời
30
Lượt xem
2,073
Quay lại
Trên cùng