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

Ma ktoś może plugin Na papier/książke która po kliknieciu przydziela range vip/svip graczu ?


pawelcio123

Rekomendowane odpowiedzi

Opublikowano

W confing.yml masz taka opcje skonfiguruj ją

 

RankUp:

Item: 'REDSTONE'

Name: '&8&l>&7&l>&c%Arg% Voucher&7&l<&8&l<'

Lore:

- '&7Use this voucher to rank up to &c%Arg%&7.'

- '&7&l(&6&l!&7&l) &7Right click to redeem.'

Player: ''

Glowing: false

Commands:

- 'pex user %Player% group set %Arg%'

Options:

Message: '&7Congratulations, you have just ranked up to &6%Arg%&7.'

Whitelist-Worlds:

Toggle: false

Message: '&cYou can not use that voucher here as you are not in a whitelisted world for this voucher.'

Worlds:

- 'world'

Permission:

Whitelist-Permission:

Toggle: false

Permissions:

- 'voucher.rankup'

Blacklist-Permissions:

Toggle: false

Message: '&cYou already have this rank and can''t use this voucher.'

Permissions:

- 'voucher.blacklist.rankup'

Limiter:

Toggle: false

Limit: 10

Two-Step-Authentication:

Toggle: false

Sound:

Toggle: true

Sounds:

- 'CLICK'

Firework:

Toggle: true

Colors: 'Black, Gray, Red'

 

MPCForum Baner (4).png

Opublikowano

vouchers:
  example:
    item:
      # Use 1.13.2 Item names for 1.8-1.12
      # Example WHITE_STAINED_GLASS_PANE instead of STAINED_GLASS_PANE:0
      material: "BOOK"
      glow: true
      name: "&6&lExample Voucher"
      lore:
        - "&7Thank you for using &6Infinite Vouchers!"
        - "&7Don't forget to leave a &65 star &7review!"
    message:
      enabled: true
      message:
        - "&8[&eInfiniteVouchers&8] &7You have successfully redeemed your voucher!"
    sound:
      enabled: true
      name: ENTITY_PLAYER_LEVELUP
    commands:
      - "give %player% diamond 1"
      - "[delay-5]give %player% diamond 1"
      # You can use [delay-number] to set the amount of seconds the command should be delayed
      # Use no tag to run a command through the console
    broadcast:
      enabled: true
      message:
        - ""
        - "&8[&eInfiniteVouchers&8] &e%player%&7 has opened a &eExample Voucher &7 voucher!"
        - ""
    required:
      # Does the player need multiple vouchers before they can redeem them?
      enabled: false
      # The amount of vouchers a player must have to redeem them
      amount: 5
      # Should players see a confirm menu before redeeming the voucher?
    confirm: true
    # Should players have a permission to redeem this voucher?
    permission:
      enabled: false
      permission: "infinite.vouchers.example"
    RankUp:

Item: 'REDSTONE'

Name: '&8&l>&7&l>&c%Arg% Voucher&7&l<&8&l<'

Lore:

- '&7Use this voucher to rank up to &c%Arg%&7.'

- '&7&l(&6&l!&7&l) &7Right click to redeem.'

Player: ''

Glowing: false

Commands:

- 'pex user %Player% group set %Arg%'

Options:

Message: '&7Congratulations, you have just ranked up to &6%Arg%&7.'

Whitelist-Worlds:

Toggle: false

Message: '&cYou can not use that voucher here as you are not in a whitelisted world for this voucher.'

Worlds:

- 'world'

Permission:

Whitelist-Permission:

Toggle: false

Permissions:

- 'voucher.rankup'

Blacklist-Permissions:

Toggle: false

Message: '&cYou already have this rank and can''t use this voucher.'

Permissions:

- 'voucher.blacklist.rankup'

Limiter:

Toggle: false

Limit: 10

Two-Step-Authentication:

Toggle: false

Sound:

Toggle: true

Sounds:

- 'CLICK'

Firework:

Toggle: true

Colors: 'Black, Gray, Red'

 

aktualnie mam tak

 

 

wyspacjowac i wyrownac?

 

Opublikowano
1 minutę temu, pawelcio123 napisał:

vouchers:
  example:
    item:
      # Use 1.13.2 Item names for 1.8-1.12
      # Example WHITE_STAINED_GLASS_PANE instead of STAINED_GLASS_PANE:0
      material: "BOOK"
      glow: true
      name: "&6&lExample Voucher"
      lore:
        - "&7Thank you for using &6Infinite Vouchers!"
        - "&7Don't forget to leave a &65 star &7review!"
    message:
      enabled: true
      message:
        - "&8[&eInfiniteVouchers&8] &7You have successfully redeemed your voucher!"
    sound:
      enabled: true
      name: ENTITY_PLAYER_LEVELUP
    commands:
      - "give %player% diamond 1"
      - "[delay-5]give %player% diamond 1"
      # You can use [delay-number] to set the amount of seconds the command should be delayed
      # Use no tag to run a command through the console
    broadcast:
      enabled: true
      message:
        - ""
        - "&8[&eInfiniteVouchers&8] &e%player%&7 has opened a &eExample Voucher &7 voucher!"
        - ""
    required:
      # Does the player need multiple vouchers before they can redeem them?
      enabled: false
      # The amount of vouchers a player must have to redeem them
      amount: 5
      # Should players see a confirm menu before redeeming the voucher?
    confirm: true
    # Should players have a permission to redeem this voucher?
    permission:
      enabled: false
      permission: "infinite.vouchers.example"
    RankUp:

Item: 'REDSTONE'

Name: '&8&l>&7&l>&c%Arg% Voucher&7&l<&8&l<'

Lore:

- '&7Use this voucher to rank up to &c%Arg%&7.'

- '&7&l(&6&l!&7&l) &7Right click to redeem.'

Player: ''

Glowing: false

Commands:

- 'pex user %Player% group set %Arg%'

Options:

Message: '&7Congratulations, you have just ranked up to &6%Arg%&7.'

Whitelist-Worlds:

Toggle: false

Message: '&cYou can not use that voucher here as you are not in a whitelisted world for this voucher.'

Worlds:

- 'world'

Permission:

Whitelist-Permission:

Toggle: false

Permissions:

- 'voucher.rankup'

Blacklist-Permissions:

Toggle: false

Message: '&cYou already have this rank and can''t use this voucher.'

Permissions:

- 'voucher.blacklist.rankup'

Limiter:

Toggle: false

Limit: 10

Two-Step-Authentication:

Toggle: false

Sound:

Toggle: true

Sounds:

- 'CLICK'

Firework:

Toggle: true

Colors: 'Black, Gray, Red'

 

aktualnie mam tak

 

 

To musisz sobie pozmieniać

 

MPCForum Baner (4).png

Opublikowano

Jakiego programu do edycji używasz?

Musisz mieć notepad++

Jeśli jest napisane tak to musisz tylko pozmieniac te zmienne które chcesz nic wiecej.

 

MPCForum Baner (4).png

Opublikowano

vouchers:
  example:
    item:
      # Use 1.13.2 Item names for 1.8-1.12
      # Example WHITE_STAINED_GLASS_PANE instead of STAINED_GLASS_PANE:0
      material: "BOOK"
      glow: true
      name: "&6&lExample Voucher"
      lore:
        - "&7Thank you for using &6Infinite Vouchers!"
        - "&7Don't forget to leave a &65 star &7review!"
    message:
      enabled: true
      message:
        - "&8[&eInfiniteVouchers&8] &7You have successfully redeemed your voucher!"
    sound:
      enabled: true
      name: ENTITY_PLAYER_LEVELUP
    commands:
      - "give %player% diamond 1"
      - "[delay-5]give %player% diamond 1"
      # You can use [delay-number] to set the amount of seconds the command should be delayed
      # Use no tag to run a command through the console
    broadcast:
      enabled: true
      message:
        - ""
        - "&8[&eInfiniteVouchers&8] &e%player%&7 has opened a &eExample Voucher &7 voucher!"
        - ""
    required:
      # Does the player need multiple vouchers before they can redeem them?
      enabled: false
      # The amount of vouchers a player must have to redeem them
      amount: 5
      # Should players see a confirm menu before redeeming the voucher?
    confirm: true
    # Should players have a permission to redeem this voucher?
    permission:
      enabled: false
      permission: "infinite.vouchers.example"
  rankup:
    Item: 'paper'
     Name: '&aPapierVIP'
     Lore:
      - '&7Use this voucher to rank up to &c%Arg%&7.'
      - '&7&l(&6&l!&7&l) &7Right click to redeem.'
     Player: ''
     Glowing: false
     Commands:
      - 'pex user %Player% group set %Arg%'
     Options:
     Message: '&7Congratulations, you have just ranked up to &6%Arg%&7.'
     Whitelist-Worlds:
     Toggle: false
     Message: '&cYou can not use that voucher here as you are not in a whitelisted world for this voucher.'
     Worlds:
      - 'world'
     Permission:
     Whitelist-Permission:
     Toggle: false
     Permissions:
      - 'voucher.rankup'
     Blacklist-Permissions:
     Toggle: false
     Message: '&cYou already have this rank and can''t use this voucher.'
     Permissions:
      - 'voucher.blacklist.rankup'
     Limiter:
     Toggle: false
     Limit: 10
     Two-Step-Authentication:
     Toggle: false
     Sound:
     Toggle: true
     Sounds:
      - 'CLICK'
     Firework:
     Toggle: true
     Colors: 'Black, Gray, Red'

pozmienialem tak jak powinno byc i nie dziala

 

Opublikowano

Z uzupełnij Vouchers.yml image.png

 

 

Powinieneś mieć takie cos pozmieniaj to.

Masz tu gotowy zrobiłem.

 

 

vouchers:
  example:
    item:
      material: "BOOK"
      data: 0
      glow: true
      name: "&e&lVip na zawsze!"
      lore:
        - "&7Aby otworzyc kliknij prawym!"
    message:
      enabled: true
      message:
        - "&8[&eVoucher&8] &7Gratulacje, Otworzyles voucher!"
    sound:
      enabled: true
      name: ENTITY_PLAYER_LEVELUP
    commands:
      - "lp user %player% parent set Vip"
      # You can use [delay-number] to set the amount of seconds the command should be delayed
      # Use no tag to run a command through the console
    broadcast:
      enabled: true
      message:
        - ""
        - "&8[&eVoucher&8] &e%player%&7 otworzyl voucher &e&lVip na zawsze!"
        - ""
    required:
      # Does the player need multiple vouchers before they can redeem them?
      enabled: false
      # The amount of vouchers a player must have to redeem them
      amount: 5
      # Should players see a confirm menu before redeeming the voucher?
    confirm: true
    # Should players have a permission to redeem this voucher?
    permission:
      enabled: true
      permission: "voucher.otworz"

 

MPCForum Baner (4).png

Opublikowano

Prostszy sposób skryptem, dodatkowo taki plugin może jeszcze bardziej obciążyć niż 5 linijek kodu.

 

on right click:
	player's tool is 1 book named "KSIAZKA VIP" with lore "KLIKNIJ, A DOSTANIESZ RANGE"
		execute console command "lp user %player% group set vip"
		set player's tool to (item amount of player's tool - 1) of player's tool
		send "GRATKI, OTRZYMALES VIPA." to player
		stop

 

Opublikowano

Przywołaj to komędą.

Przed chwilą, MajsQ napisał:

Prostszy sposób skryptem, dodatkowo taki plugin może jeszcze bardziej obciążyć niż 5 linijek kodu.

 


on right click:
	player's tool is 1 book named "KSIAZKA VIP" with lore "KLIKNIJ, A DOSTANIESZ RANGE"
		execute console command "lp user %player% group set vip"
		send "GRATKI, OTRZYMALES VIPA." to player
		stop

 

Pomyliły ci się działy chyba napisał jasno że chce Plugin

 

MPCForum Baner (4).png

Opublikowano
7 minut temu, RybekPL napisał:

Przywołaj to komędą.

Pomyliły ci się działy chyba napisał jasno że chce Plugin

 

Maybe, a ja wolałbym mu pomóc nie zniechęcić do siebie graczy głupim pluginem, który jest +1 do x pluginów i kolejnym obciążeniem dla serwera, ale jak kto woli. Potem pieniążki na więcej RAM'u i dla hostingu przynajmnie. Też jakaś opcja 😜 

 

Pobierasz sobie plugin "skript", jest w nich wiele możliwości od wiadomości po różne ciekawe akcje, ale bez przesady aby nie obciążyć serwera.

 

https://github.com/SkriptLang/Skript/releases - Pobierasz sobie "skript.jar"

 

Otwierasz folder Skript -> scripts -> tworzysz plik "nazwa.sk" edytujesz go i wklejasz mój kodzik.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...