Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################################################################
- #
- #
- #
- # // СИСТЕМА РЕПУТАЦИИ by Джейкоб — MyCommand
- #
- #
- # Перед добавлением команд ОБЯЗАТЕЛЬНО выполните эти действия:
- #
- # Создайте переменную, которая будет хранить репутацию:
- # /mycmd-variables create reputation
- #
- # Загрузите все необходимые расширения для плейсхолдеров:
- # /papi ecloud download LuckPerms
- # /papi ecloud download ParseOther
- #
- # Для вывода репутации используйте %mycommand_playerdata_reputation%
- #
- #
- # Если вы хотите изменять цвет в зависимости от репутации,
- # также понадобится расширение для скрипта:
- # /papi ecloud download Javascript
- #
- # Если у вас на сервере Java 8, то:
- # /papi ecloud download Javascript 1.6.0
- #
- # Скрипт для изменения цвета репутации: https://pastebin.com/VHa8khHa
- #
- #
- #
- ######################################################################
- rep_command:
- command: /rep
- type: RUN_CONSOLE
- runcmd:
- - '$Script$%if%$arg1==$player'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &cВы не можете влиять на собственную репутацию!'
- - '$text$'
- - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &cИгрок не найден. Возможно, он оффлайн!'
- - '$text$'
- - '$Script$%elseif%%luckperms_has_permission_rep.sent%==yes'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &e🔥 &fВы недавно респектовали другому игроку! Ожидайте &e%luckperms_expiry_time_rep.sent%'
- - '$text$'
- - '$Script$%else%'
- - 'mycmd-playerdata add $arg1 reputation +1'
- - 'lp user $player permission settemp rep.sent true 1m'
- - '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- - '$text$'
- - '$text$ &a🔥 &fВы выразили респект игроку &e$arg1&f. Его репутация: &7%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- - '$text$'
- - '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- - 'tellraw $arg1 ["",{"text":" \n "},{"text":"🔥","color":"green"},{"text":" Вы получили респект от "},{"text":"$player","color":"yellow"},{"text":". Ваша репутация: "},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"gray"},{"text":"\n "}]'
- required_args: 1
- permission-required: false
- register: true
- placeholders_replace_mode: NO_CUSTOM_VARIABLES
- error-message: '&7Использование: &f/rep <ник>'
- disrep_command:
- command: /disrep
- type: RUN_CONSOLE
- runcmd:
- - '$Script$%if%$arg1==$player'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &cВы не можете влиять на собственную репутацию!'
- - '$text$'
- - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &cИгрок не найден. Возможно, он оффлайн!'
- - '$text$'
- - '$Script$%elseif%%luckperms_has_permission_rep.sent%==yes'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK'
- - '$text$'
- - '$text$ &e🔥 &fВы недавно дизреспектовали другому игроку! Ожидайте &e%luckperms_expiry_time_disrep.sent%'
- - '$text$'
- - '$Script$%else%'
- - 'mycmd-playerdata add $arg1 reputation -1'
- - 'lp user $player permission settemp disrep.sent true 1m'
- - '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- - '$text$'
- - '$text$ &c🔥 &fВы выразили дизреспект игроку &e$arg1&f. Его репутация: &7%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- - '$text$'
- - '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- - 'tellraw $arg1 ["",{"text":" \n "},{"text":"🔥","color":"red"},{"text":" Вы получили дизреспект от "},{"text":"$player","color":"yellow"},{"text":". Ваша репутация: "},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"gray"},{"text":"\n "}]'
- required_args: 1
- permission-required: false
- register: true
- placeholders_replace_mode: NO_CUSTOM_VARIABLES
- error-message: '&7Использование: &f/disrep <ник>'
Advertisement
Add Comment
Please, Sign In to add comment