JaycobYT

Команды с наградами — MyCommand

May 26th, 2022
7,032
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.62 KB | None | 2 0
  1. ######################################################################
  2. #
  3. #
  4. #
  5. #   // КОМАНДЫ С НАГРАДАМИ by Джейкоб — MyCommand
  6. #
  7. #
  8. #   Для работоспособности плейсхолдеров %luckperms...%
  9. #   установите расширение для плагина PlaceholderAPI:
  10. #
  11. #   /papi ecloud download LuckPerms
  12. #   /papi reload
  13. #
  14. #
  15. #
  16. ######################################################################
  17.  
  18.  
  19. ###########################################
  20. #
  21. #   Обычная награда (раз в 24 часа)
  22. #
  23. ###########################################
  24. reward:
  25.   command: /reward
  26.   type: RUN_CONSOLE
  27.   runcmd:
  28.  - '$Script$%if%%luckperms_has_permission_reward.give%==yes'
  29.   - '$text$'
  30.   - '$text$  &eВы уже получали награду!'
  31.   - '$text$  &e➥ Ожидайте &6%luckperms_expiry_time_reward.give%'
  32.   - '$text$'
  33.   - '$Script$%else%'
  34.   - 'lp user $player permission settemp reward.give true 24h'
  35.   - 'eco give $player 1000'
  36.   - 'give $player diamond 1'
  37.   - '$text$'
  38.   - '$text$'
  39.   - '$text$  &aВы получили награду!'
  40.   - '$text$  &f+ &e$1000'
  41.   - '$text$  &f+ &ex1 Алмаз'
  42.   - '$text$'
  43.   - '$text$'
  44.   permission-required: false
  45.   register: true
  46.   error-message: ' &7➥ &fИспользование: &7/reward'
  47.  
  48.  
  49. ###########################################
  50. #
  51. #   Рандомная награда (раз в 24 часа)
  52. #
  53. ###########################################
  54. randomreward:
  55.   command: /randomreward
  56.   type: RUN_COMMAND_RANDOM
  57.   runcmd:
  58.  - '/prize 1'
  59.   - '/prize 2'
  60.   - '/prize 3'
  61.   permission-required: false
  62.   register: true
  63.   error-message: ' &7➥ &fИспользование: &7/randomreward'
  64.  
  65.  
  66. prize1:
  67.   command: /prize 1
  68.   type: RUN_CONSOLE
  69.   execute_mode: FROM_ANOTHER_COMMAND
  70.   runcmd:
  71.  - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
  72.   - '$text$'
  73.   - '$text$  &eВы уже получали награду!'
  74.   - '$text$  &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
  75.   - '$text$'
  76.   - '$Script$%else%'
  77.   - 'lp user $player permission settemp randomreward.give true 24h'
  78.   - 'eco give $player 1000'
  79.   - 'give $player diamond 3'
  80.   - '$text$'
  81.   - '$text$'
  82.   - '$text$  &aВы получили награду!'
  83.   - '$text$  &f+ &e$1000'
  84.   - '$text$  &f+ &ex3 Алмаз'
  85.   - '$text$'
  86.   - '$text$'
  87.   permission-required: false
  88.  
  89.  
  90. prize2:
  91.   command: /prize 2
  92.   type: RUN_CONSOLE
  93.   execute_mode: FROM_ANOTHER_COMMAND
  94.   runcmd:
  95.  - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
  96.   - '$text$'
  97.   - '$text$  &eВы уже получали награду!'
  98.   - '$text$  &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
  99.   - '$text$'
  100.   - '$Script$%else%'
  101.   - 'lp user $player permission settemp randomreward.give true 24h'
  102.   - 'eco give $player 750'
  103.   - 'give $player gold_ingot 16'
  104.   - '$text$'
  105.   - '$text$'
  106.   - '$text$  &aВы получили награду!'
  107.   - '$text$  &f+ &e$750'
  108.   - '$text$  &f+ &ex16 Золотой Слиток'
  109.   - '$text$'
  110.   - '$text$'
  111.   permission-required: false
  112.  
  113.  
  114. prize3:
  115.   command: /prize 3
  116.   type: RUN_CONSOLE
  117.   execute_mode: FROM_ANOTHER_COMMAND
  118.   runcmd:
  119.  - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
  120.   - '$text$'
  121.   - '$text$  &eВы уже получали награду!'
  122.   - '$text$  &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
  123.   - '$text$'
  124.   - '$Script$%else%'
  125.   - 'lp user $player permission settemp randomreward.give true 24h'
  126.   - 'eco give $player 1250'
  127.   - 'give $player emerald 5'
  128.   - '$text$'
  129.   - '$text$'
  130.   - '$text$  &aВы получили награду!'
  131.   - '$text$  &f+ &e$1250'
  132.   - '$text$  &f+ &ex5 Изумруд'
  133.   - '$text$'
  134.   - '$text$'
  135.   permission-required: false
  136.  
  137.  
  138. ###########################################
  139. #
  140. #   Выдача доната (гранта) игроку
  141. #
  142. ###########################################
  143. grant:
  144.   command: /grant
  145.   type: RUN_CONSOLE
  146.   runcmd:
  147.  - '$Script$%if%%luckperms_has_permission_grant.give%==yes'
  148.   - '$text$'
  149.   - '$text$ &c✕ Вы уже использовали эту возможность!'
  150.   - '$text$'
  151.   - '$Script$%elseif%$arg1==$player'
  152.   - '$text$'
  153.   - '$text$ &c✕ Нельзя выдать донат самому себе'
  154.   - '$text$'
  155.   - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
  156.   - '$text$'
  157.   - '$text$ &c✕ Игрок с таким ником не найден! Возможно, он оффлайн'
  158.   - '$text$'
  159.   - '$Script$%elseif%$arg2==knight'
  160.   - 'lp user $arg1 parent add knight'
  161.   - 'lp user $player permission set grant.give'
  162.   - '$text$'
  163.   - '$text$ &6✔ &aВы успешно выдали &6Рыцаря &aигроку &6$arg1'
  164.   - '$text$'
  165.   - '$Script$%elseif%$arg2==lord'
  166.   - 'lp user $arg1 parent add lord'
  167.   - 'lp user $player permission set grant.give'
  168.   - '$text$'
  169.   - '$text$ &6✔ &aВы успешно выдали &6Лорда &aигроку &6$arg1'
  170.   - '$text$'
  171.   - '$Script$%elseif%$arg2==prince'
  172.   - 'lp user $arg1 parent add prince'
  173.   - 'lp user $player permission set grant.give'
  174.   - '$text$'
  175.   - '$text$ &6✔ &aВы успешно выдали &6Принца &aигроку &6$arg1'
  176.   - '$text$'
  177.   - '$Script$%else%'
  178.   - '$text$ &7➥ &fИспользование: &7/grant <ник> <донат>'
  179.   permission-required: true
  180.   permission-node: grant.command
  181.   required_args: 2
  182.   register: true
  183.   error-message: ' &7➥ &fИспользование: &7/grant <ник> <донат>'
  184.   tab_completer:
  185.     1:
  186.    - $player_list
  187.     2:
  188.    - knight
  189.     - lord
  190.     - prince
Advertisement
Add Comment
Please, Sign In to add comment