- Плагин
- MyCommand
- Ядро сервера
- Spigot
- Версия сервера
- 1.21
- Память сервера ОЗУ
- 6Gb
Сделал команды в MyCommand но они не работаю
Вот команды -
Вот команды -
Код:
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 <ник>'
givedonate:
command: /givedonate
type: RUN_CONSOLE
runcmd:
- '$broadcasttext$'
- '$broadcasttext$ &aДонат | &fИгрок &f$arg1 &fприобрёл донат!'
- '$broadcasttext$ &aДонат | &fСпасибо за поддержку сервера &e:)'
- '$broadcasttext$'
- 'minecraft:title $arg1 times 20 140 20'
- 'minecraft:title $arg1 title {"text":"&aУспешная Покупка!"}'
- 'minecraft:title $arg1 subtitle {"text":"&fСпасибо за поддержку!"}'
- 'minecraft:playsound block.end_portal.spawn ambient $arg1 %parseother_{$arg1}_{player_x}% %parseother_{$arg1}_{player_y}% %parseother_{$arg1}_{player_z}%'
- 'minecraft:effect give $arg1 blindness 10 1'
- 'lp user $arg1 parent add $arg2'
- 'mycmd-playerdata add $arg1 donate_count +1'
register: true
permission-required: true
permission-node: admin.givedonate
required_args: 2
error-message: '&aДонат | &fИспользование: &7/givedonate [ник] [донат]'
placeholders_replace_mode: NO_CUSTOM_VARIABLES
tab_completer:
1:
- $player_list
2:
- dragon
- phenix
- prince
- titan
- elite
- lord
- chapter
- gladiator
- hero
- guardian
- wanderer