Вопрос Как выдать временное право для игрока в LuckPerms

Danil4512

Пользователь
Сообщения
72
Решения
1
Плагин
LuckPerms
Ядро сервера
  1. Paper
Версия сервера
  1. 1.12.2
Ссылка
https://www.spigotmc.org/resources/luckperms.28140/
Всем привет, хотел бы узнать какой командой в LuckPerms можно выдать определенное право на 30 дней?
 
Решение
Можно на русском и с примером пожалуйста?
/lp user/group permission settemp [temporary modifier] [context...]
Разрешение: luckperms.user.permission.settemp или luckperms.group.permission.settemp
Аргументы:

- узел разрешения для установки
- значение, на которое нужно установить разрешение
- продолжительность до истечения срока действия разрешения
[временный модификатор] - как должно применяться временное разрешение
[контекст...] - контекст, в котором нужно установить разрешение.
Устанавливает временное разрешение для пользователя/группы. Предоставление значения "false" отменяет разрешение. Продолжительность должна быть либо периодом времени, либо меткой времени unix, когда срок действия разрешения истечет. Например...

/lp user/group <user|group> permission settemp <node> <true|false> <duration> [temporary modifier] [context...]
Permission
: luckperms.user.permission.settemp or luckperms.group.permission.settemp
Arguments:

  • <node> - the permission node to set
  • <true|false> - the value to set the permission to
  • <duration> - the duration until the permission will expire
  • [temporary modifier] - how the temporary permission should be applied
  • [context...] - the to set the permission in
Sets a permission temporarily for a user/group. Providing a value of "false" will negate the permission. Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "1mo3d13h45m" will set the permission to expire in 1 month, 3 days, 13 hours and 45 minutes time, while "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.

The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.

Modifier keyDescription
accumulatethe duration of any existing nodes will just be added to the new duration
replacethe longest duration will be kept, any others nodes will be forgotten
denythe command will just fail if you try to add a duplicate temporary node
 

/lp user/group <user|group> permission settemp <node> <true|false> <duration> [temporary modifier] [context...]
Permission
: luckperms.user.permission.settemp or luckperms.group.permission.settemp
Arguments:

  • <node> - the permission node to set
  • <true|false> - the value to set the permission to
  • <duration> - the duration until the permission will expire
  • [temporary modifier] - how the temporary permission should be applied
  • [context...] - the to set the permission in
Sets a permission temporarily for a user/group. Providing a value of "false" will negate the permission. Duration should either be a time period, or a unix timestamp when the permission will expire. e.g. "1mo3d13h45m" will set the permission to expire in 1 month, 3 days, 13 hours and 45 minutes time, while "1482694200" will set the permission to expire at 7:30PM on 25th December 2016.

The "temporary modifier" argument allows you to specify how the permission should be accumulated. You can pick between 3 different options.

Modifier keyDescription
accumulatethe duration of any existing nodes will just be added to the new duration
replacethe longest duration will be kept, any others nodes will be forgotten
denythe command will just fail if you try to add a duplicate temporary node
Можно на русском и с примером пожалуйста?
 
Можно на русском и с примером пожалуйста?
/lp user/group permission settemp [temporary modifier] [context...]
Разрешение: luckperms.user.permission.settemp или luckperms.group.permission.settemp
Аргументы:

- узел разрешения для установки
- значение, на которое нужно установить разрешение
- продолжительность до истечения срока действия разрешения
[временный модификатор] - как должно применяться временное разрешение
[контекст...] - контекст, в котором нужно установить разрешение.
Устанавливает временное разрешение для пользователя/группы. Предоставление значения "false" отменяет разрешение. Продолжительность должна быть либо периодом времени, либо меткой времени unix, когда срок действия разрешения истечет. Например, "1mo3d13h45m" установит срок действия разрешения через 1 месяц, 3 дня, 13 часов и 45 минут, а "1482694200" установит срок действия разрешения в 7:30 вечера 25 декабря 2016 года.

Аргумент "временный модификатор" позволяет указать, как должно накапливаться разрешение. Вы можете выбрать один из 3 вариантов.

Ключ модификатора Описание
накапливать длительность всех существующих узлов будет просто добавлена к новой длительности
replace самая большая длительность будет сохранена, все остальные узлы будут забыты
deny команда будет просто отклонена, если вы попытаетесь добавить дубликат временного узла

 
Назад
Сверху Снизу