• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
资源图标

原创 开源 工具 DailyEXPLimit - 每日经验获取上限限制 [SalxStudio] 1.0-SNAPSHOT

版权类型
原创
插件中文名称
每日经验获取上限限制
插件英文名称
DailyEXPLimit
原帖地址
https://github.com/SalxStudio/DailyEXPLimit
支持的核心(服务端)
  1. Spigot
  2. Paper
语言支持
中文(简体)
适配版本(Java)
  1. 1.21
  2. 1.20
  3. 1.19
  4. 1.18
  5. 1.17
· 说明:
该插件为1.21原生插件理论支持其他版本,未经过测试。


开源地址

· 功能:
设定每个自定义权限组的每日经验获取的上限

· 命令:

命令作用默认权限
/dexp help帮助dexp.admin
/dexp reset PlayerName重置某个玩家的可获得经验上限dexp.admin
/dexp resetall重置所有玩家的可获得经验上限dexp.admin
/dexp reload重新读取配置文件,更新玩家的可获得经验上限dexp.admin
/dexp limit add PlayerName 数值增加玩家的临时上限(每日自动删除临时的值)dexp.admin

· 支持PlaceholderAPI

PlaceHolderApi占位符备注
%dexp_get%用于显示玩家今日已经获取的经验值
%dexp_max%用于显示玩家今日可获取的最大经验值

· 配置文件:

代码:
dexp:
  limit:
    default: 3000
    v1: 4000
    v2: 5000
  reset:
    cron: "0 0 0 * * ?"

#MySQL database settings.
database:
  mysql: false
  # The database address. (Only required if mysql is true)
  host: localhost
  # The database port. (Only required if mysql is true)
  port: 3306
  # The database names. (Only required if mysql is true)
  database: dexp
  # The database username. (Only required if mysql is true)
  user: root
  # The database password. (Only required if mysql is true)
  password: passwd
  # Set prefix to "none" to remove prefix (Both local and remote will be used).
  prefix: "dexp_"
  # Should use SSL for database connections?  (Only required if mysql is true)
  usessl: false
  # Properties for creating connections, you can add your own properties for datasource here. (Both local and remote will be used).
  properties:
    connection-timeout: 60000
    validation-timeout: 3000
    idle-timeout: 60000
    login-timeout: 10
    maxLifeTime: 60000
    maximum-pool-size: 8
    minimum-idle: 2
    cachePrepStmts: true
    prepStmtCacheSize: 250
    prepStmtCacheSqlLimit: 2048
    useUnicode: true
    characterEncoding: utf8
    allowPublicKeyRetrieval: true

· 配置项:

dexp.limit指定权限组的玩家可获得的最大经验值
dexp:
limit:
default: 30
v1: 50
v2: 80
exp.limit.default:无任何权限玩家可获得30经验
exp.limit.v1:权限组可获得50经验
exp.limit.v2:权限组可获得80经验
dexp.reset.cron
定时重置时间
cron格式:0 0 * * *
每天24:00 重置

· 喜欢该插件,留言好评,感谢支持
作者
godduck
下载
188
查看
288
首次发布
最后更新

评分

0.00 星 0 次评分
后退
顶部 底部