помогите, хочу сделать на сервере систему порядочности, типо если у игрока меньше 2000 порядочности ему блокируется чат. сколько не пытался, не получалось. писало что порядочность добавилась, но либо пермишн не выдавался, либо он выдавался когда порядочности меньше 2000
rep_command:
command: /rep
type: RUN_CONSOLE
runcmd:
- 'mycmd-playerdata add $arg1 reputation +75'
- '$Script$%if%%parseother_{$arg1}_{mycommand_playerdata_reputation}%>=2000'
- 'lp user $arg1 permission set chatty.chat.local true'
- '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- '$text$ '
- '$text$ §x§F§F§0§0§0§0» &fВы повысили порядочность игроку §x§F§F§0§0§0§0$arg1&f!'
- '$text$ §x§F§F§0§0§0§0» &fЕго порядочность: §x§F§F§0§0§0§0%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- '$text$ '
- '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- 'tellraw $arg1 ["\n",{"text":"» ","color":"#ff0000"},{"text":"Ваша порядочность изменена!","color":"rgba(255, 255, 255, 0.75)"},"\n",{"text":"»","color":"#ff0000"},{"text":" Порядочность: ","color":"white"},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"#ff0000"},"\n"]'
- '$Script$%else%'
- '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- '$text$ '
- '$text$ §x§F§F§0§0§0§0» &fВы повысили порядочность игроку §x§F§F§0§0§0§0$arg1&f!'
- '$text$ §x§F§F§0§0§0§0» &fЕго порядочность: §x§F§F§0§0§0§0%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- '$text$ '
- '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- 'tellraw $arg1 ["\n",{"text":"» ","color":"#ff0000"},{"text":"Ваша порядочность изменена!","color":"rgba(255, 255, 255, 0.75)"},"\n",{"text":"»","color":"#ff0000"},{"text":" Порядочность: ","color":"white"},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"#ff0000"},"\n"]'
required_args: 1
permission-required: true
permission: moder.rep
delaytimer: 1
register: true
placeholders_replace_mode: NO_CUSTOM_VARIABLES
error-message: '§x§F§F§0§0§0§0» &fИспользование: §x§F§F§0§0§0§0/rep (ник)'
rep_command:
command: /rep
type: RUN_CONSOLE
runcmd:
- 'mycmd-playerdata add $arg1 reputation +75'
- '$Script$%if%%parseother_{$arg1}_{mycommand_playerdata_reputation}%>=2000'
- 'lp user $arg1 permission set chatty.chat.local true'
- '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- '$text$ '
- '$text$ §x§F§F§0§0§0§0» &fВы повысили порядочность игроку §x§F§F§0§0§0§0$arg1&f!'
- '$text$ §x§F§F§0§0§0§0» &fЕго порядочность: §x§F§F§0§0§0§0%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- '$text$ '
- '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- 'tellraw $arg1 ["\n",{"text":"» ","color":"#ff0000"},{"text":"Ваша порядочность изменена!","color":"rgba(255, 255, 255, 0.75)"},"\n",{"text":"»","color":"#ff0000"},{"text":" Порядочность: ","color":"white"},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"#ff0000"},"\n"]'
- '$Script$%else%'
- '%PlayerOptions%playSound: ENTITY_PLAYER_LEVELUP'
- '$text$ '
- '$text$ §x§F§F§0§0§0§0» &fВы повысили порядочность игроку §x§F§F§0§0§0§0$arg1&f!'
- '$text$ §x§F§F§0§0§0§0» &fЕго порядочность: §x§F§F§0§0§0§0%parseother_{$arg1}_{mycommand_playerdata_reputation}%'
- '$text$ '
- '%PlayerOptionsFor%$arg1%playSound: ENTITY_PLAYER_LEVELUP'
- 'tellraw $arg1 ["\n",{"text":"» ","color":"#ff0000"},{"text":"Ваша порядочность изменена!","color":"rgba(255, 255, 255, 0.75)"},"\n",{"text":"»","color":"#ff0000"},{"text":" Порядочность: ","color":"white"},{"text":"%parseother_{$arg1}_{mycommand_playerdata_reputation}%","color":"#ff0000"},"\n"]'
required_args: 1
permission-required: true
permission: moder.rep
delaytimer: 1
register: true
placeholders_replace_mode: NO_CUSTOM_VARIABLES
error-message: '§x§F§F§0§0§0§0» &fИспользование: §x§F§F§0§0§0§0/rep (ник)'