Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################################################################
- #
- #
- #
- # // КОМАНДЫ С НАГРАДАМИ by Джейкоб — MyCommand
- #
- #
- # Для работоспособности плейсхолдеров %luckperms...%
- # установите расширение для плагина PlaceholderAPI:
- #
- # /papi ecloud download LuckPerms
- # /papi reload
- #
- #
- #
- ######################################################################
- ###########################################
- #
- # Обычная награда (раз в 24 часа)
- #
- ###########################################
- reward:
- command: /reward
- type: RUN_CONSOLE
- runcmd:
- - '$Script$%if%%luckperms_has_permission_reward.give%==yes'
- - '$text$'
- - '$text$ &eВы уже получали награду!'
- - '$text$ &e➥ Ожидайте &6%luckperms_expiry_time_reward.give%'
- - '$text$'
- - '$Script$%else%'
- - 'lp user $player permission settemp reward.give true 24h'
- - 'eco give $player 1000'
- - 'give $player diamond 1'
- - '$text$'
- - '$text$'
- - '$text$ &aВы получили награду!'
- - '$text$ &f+ &e$1000'
- - '$text$ &f+ &ex1 Алмаз'
- - '$text$'
- - '$text$'
- permission-required: false
- register: true
- error-message: ' &7➥ &fИспользование: &7/reward'
- ###########################################
- #
- # Рандомная награда (раз в 24 часа)
- #
- ###########################################
- randomreward:
- command: /randomreward
- type: RUN_COMMAND_RANDOM
- runcmd:
- - '/prize 1'
- - '/prize 2'
- - '/prize 3'
- permission-required: false
- register: true
- error-message: ' &7➥ &fИспользование: &7/randomreward'
- prize1:
- command: /prize 1
- type: RUN_CONSOLE
- execute_mode: FROM_ANOTHER_COMMAND
- runcmd:
- - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
- - '$text$'
- - '$text$ &eВы уже получали награду!'
- - '$text$ &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
- - '$text$'
- - '$Script$%else%'
- - 'lp user $player permission settemp randomreward.give true 24h'
- - 'eco give $player 1000'
- - 'give $player diamond 3'
- - '$text$'
- - '$text$'
- - '$text$ &aВы получили награду!'
- - '$text$ &f+ &e$1000'
- - '$text$ &f+ &ex3 Алмаз'
- - '$text$'
- - '$text$'
- permission-required: false
- prize2:
- command: /prize 2
- type: RUN_CONSOLE
- execute_mode: FROM_ANOTHER_COMMAND
- runcmd:
- - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
- - '$text$'
- - '$text$ &eВы уже получали награду!'
- - '$text$ &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
- - '$text$'
- - '$Script$%else%'
- - 'lp user $player permission settemp randomreward.give true 24h'
- - 'eco give $player 750'
- - 'give $player gold_ingot 16'
- - '$text$'
- - '$text$'
- - '$text$ &aВы получили награду!'
- - '$text$ &f+ &e$750'
- - '$text$ &f+ &ex16 Золотой Слиток'
- - '$text$'
- - '$text$'
- permission-required: false
- prize3:
- command: /prize 3
- type: RUN_CONSOLE
- execute_mode: FROM_ANOTHER_COMMAND
- runcmd:
- - '$Script$%if%%luckperms_has_permission_randomreward.give%==yes'
- - '$text$'
- - '$text$ &eВы уже получали награду!'
- - '$text$ &e➥ Ожидайте &6%luckperms_expiry_time_randomreward.give%'
- - '$text$'
- - '$Script$%else%'
- - 'lp user $player permission settemp randomreward.give true 24h'
- - 'eco give $player 1250'
- - 'give $player emerald 5'
- - '$text$'
- - '$text$'
- - '$text$ &aВы получили награду!'
- - '$text$ &f+ &e$1250'
- - '$text$ &f+ &ex5 Изумруд'
- - '$text$'
- - '$text$'
- permission-required: false
- ###########################################
- #
- # Выдача доната (гранта) игроку
- #
- ###########################################
- grant:
- command: /grant
- type: RUN_CONSOLE
- runcmd:
- - '$Script$%if%%luckperms_has_permission_grant.give%==yes'
- - '$text$'
- - '$text$ &c✕ Вы уже использовали эту возможность!'
- - '$text$'
- - '$Script$%elseif%$arg1==$player'
- - '$text$'
- - '$text$ &c✕ Нельзя выдать донат самому себе'
- - '$text$'
- - '$Script$%elseif%$CheckPlayerStatus%$arg1%isOnline%==false'
- - '$text$'
- - '$text$ &c✕ Игрок с таким ником не найден! Возможно, он оффлайн'
- - '$text$'
- - '$Script$%elseif%$arg2==knight'
- - 'lp user $arg1 parent add knight'
- - 'lp user $player permission set grant.give'
- - '$text$'
- - '$text$ &6✔ &aВы успешно выдали &6Рыцаря &aигроку &6$arg1'
- - '$text$'
- - '$Script$%elseif%$arg2==lord'
- - 'lp user $arg1 parent add lord'
- - 'lp user $player permission set grant.give'
- - '$text$'
- - '$text$ &6✔ &aВы успешно выдали &6Лорда &aигроку &6$arg1'
- - '$text$'
- - '$Script$%elseif%$arg2==prince'
- - 'lp user $arg1 parent add prince'
- - 'lp user $player permission set grant.give'
- - '$text$'
- - '$text$ &6✔ &aВы успешно выдали &6Принца &aигроку &6$arg1'
- - '$text$'
- - '$Script$%else%'
- - '$text$ &7➥ &fИспользование: &7/grant <ник> <донат>'
- permission-required: true
- permission-node: grant.command
- required_args: 2
- register: true
- error-message: ' &7➥ &fИспользование: &7/grant <ник> <донат>'
- tab_completer:
- 1:
- - $player_list
- 2:
- - knight
- - lord
- - prince
Advertisement
Add Comment
Please, Sign In to add comment