JaycobYT

Команды для системы репутации — MyCommand

Feb 18th, 2022
7,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.64 KB | None | 0 0
  1. ######################################################################
  2. #
  3. #
  4. #
  5. #   // СИСТЕМА РЕПУТАЦИИ by Джейкоб — MyCommand
  6. #
  7. #
  8. #   Перед добавлением команд ОБЯЗАТЕЛЬНО выполните эти действия:
  9. #
  10. #   Создайте переменную, которая будет хранить репутацию:
  11. #   /mycmd-variables create reputation
  12. #
  13. #   Загрузите все необходимые расширения для плейсхолдеров:
  14. #   /papi ecloud download LuckPerms
  15. #   /papi ecloud download ParseOther
  16. #
  17. #   Для вывода репутации используйте %mycommand_playerdata_reputation%
  18. #
  19. #
  20. #   Если вы хотите изменять цвет в зависимости от репутации,
  21. #   также понадобится расширение для скрипта:
  22. #   /papi ecloud download Javascript
  23. #
  24. #   Если у вас на сервере Java 8, то:
  25. #   /papi ecloud download Javascript 1.6.0
  26. #
  27. #   Скрипт для изменения цвета репутации: https://pastebin.com/VHa8khHa
  28. #
  29. #
  30. #
  31. ######################################################################
  32.  
  33.  
  34. rep_command:
  35.   command: /rep
  36.   type: RUN_CONSOLE
  37.   runcmd:
  38.  - '$Script$%if%$arg1==$player'
  39.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  40.   - '$text$'
  41.   - '$text$ &cВы не можете влиять на собственную репутацию!'
  42.   - '$text$'
  43.   - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
  44.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  45.   - '$text$'
  46.   - '$text$ &cИгрок не найден. Возможно, он оффлайн!'
  47.   - '$text$'
  48.   - '$Script$%elseif%%luckperms_has_permission_rep.sent%==yes'
  49.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  50.   - '$text$'
  51.   - '$text$ &e🔥 &fВы недавно респектовали другому игроку! Ожидайте &e%luckperms_expiry_time_rep.sent%'
  52.   - '$text$'
  53.   - '$Script$%else%'
  54.   - 'mycmd-playerdata add $arg1 reputation +1'
  55.   - 'lp user $player permission settemp rep.sent true 1m'
  56.   - '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
  57.   - '$text$'
  58.   - '$text$ &a🔥 &fВы выразили респект игроку &e$arg1&f. Его репутация: &7%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
  59.   - '$text$'
  60.   - '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
  61.   - 'tellraw $arg1 ["",{"text":" \n "},{"text":"🔥","color":"green"},{"text":" Вы получили респект от "},{"text":"$player","color":"yellow"},{"text":". Ваша репутация: "},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"gray"},{"text":"\n "}]'
  62.   required_args: 1
  63.   permission-required: false
  64.   register: true
  65.   placeholders_replace_mode: NO_CUSTOM_VARIABLES
  66.   error-message: '&7Использование: &f/rep <ник>'
  67.  
  68.  
  69. disrep_command:
  70.   command: /disrep
  71.   type: RUN_CONSOLE
  72.   runcmd:
  73.  - '$Script$%if%$arg1==$player'
  74.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  75.   - '$text$'
  76.   - '$text$ &cВы не можете влиять на собственную репутацию!'
  77.   - '$text$'
  78.   - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
  79.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  80.   - '$text$'
  81.   - '$text$ &cИгрок не найден. Возможно, он оффлайн!'
  82.   - '$text$'
  83.   - '$Script$%elseif%%luckperms_has_permission_rep.sent%==yes'
  84.   - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
  85.   - '$text$'
  86.   - '$text$ &e🔥 &fВы недавно дизреспектовали другому игроку! Ожидайте &e%luckperms_expiry_time_disrep.sent%'
  87.   - '$text$'
  88.   - '$Script$%else%'
  89.   - 'mycmd-playerdata add $arg1 reputation -1'
  90.   - 'lp user $player permission settemp disrep.sent true 1m'
  91.   - '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
  92.   - '$text$'
  93.   - '$text$ &c🔥 &fВы выразили дизреспект игроку &e$arg1&f. Его репутация: &7%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
  94.   - '$text$'
  95.   - '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
  96.   - 'tellraw $arg1 ["",{"text":" \n "},{"text":"🔥","color":"red"},{"text":" Вы получили дизреспект от "},{"text":"$player","color":"yellow"},{"text":". Ваша репутация: "},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"gray"},{"text":"\n "}]'
  97.   required_args: 1
  98.   permission-required: false
  99.   register: true
  100.   placeholders_replace_mode: NO_CUSTOM_VARIABLES
  101.   error-message: '&7Использование: &f/disrep <ник>'
  102.  
  103.  
Advertisement
Add Comment
Please, Sign In to add comment