bingdi_
本帖最后由 bingdi_ 于 2022-6-23 12:29 编辑

%luckperms_group_expiry_time_<group name>%显示的格式是这样的 比如2天 1d 23h 59m 59s
怎么将这个格式转换为纯数字,任何方式都可以

1天就是1  十天就是10


lwj512
\LuckPerms\translations\repository          语言配置文件里面修改

lwj512
lwj512 发表于 2022-6-23 10:35
\LuckPerms\translations\repository          语言配置文件里面修改
  1. luckperms.duration.unit.years.plural={0} 年
  2. luckperms.duration.unit.years.singular={0} 年
  3. luckperms.duration.unit.years.short={0}年
  4. luckperms.duration.unit.months.plural={0} 月
  5. luckperms.duration.unit.months.singular={0} 月
  6. luckperms.duration.unit.months.short={0}月
  7. luckperms.duration.unit.weeks.plural={0} 周
  8. luckperms.duration.unit.weeks.singular={0} 周
  9. luckperms.duration.unit.weeks.short={0}周
  10. luckperms.duration.unit.days.plural={0} 天
  11. luckperms.duration.unit.days.singular={0} 天
  12. luckperms.duration.unit.days.short={0}天
  13. luckperms.duration.unit.hours.plural={0} 小时
  14. luckperms.duration.unit.hours.singular={0} 小时
  15. luckperms.duration.unit.hours.short={0}时
  16. luckperms.duration.unit.minutes.plural={0} 分钟
  17. luckperms.duration.unit.minutes.singular={0} 分钟
  18. luckperms.duration.unit.minutes.short={0}分
  19. luckperms.duration.unit.seconds.plural={0} 秒
  20. luckperms.duration.unit.seconds.singular={0} 秒
  21. luckperms.duration.unit.seconds.short={0}秒
复制代码

bingdi_

语言文件只能修改单位,并不能修改格式

xiaoyuex
纯数值使用js就行,但会有一个特殊问题,就是显示不正常,比如你给的1d 23h 59m 59s,改成纯数值的话,就是1235959,而它的数据是按24小时时间制,而不是1到100

第一页 上一页 下一页 最后一页