PermissionsEx 权限管理Ex

作者:Sitmobedaf 发布时间:2023年3月2日 原生版本:未知 测试支持:1.19

《我的世界》强大的权限插件

点此下载

插件详细介绍

PermissionsEx (PEX) 是一款流行的 Minecraft 权限管理插件,本版本旨在修复原版 PEX 在 1.19 版本中可能出现的服务器崩溃问题,并进行了一些优化和调整。

🛠️ PermissionsEx

✨ 主要修复与变更

  • 修复了由于 `PermissiblePEX` 类的 `recalculatePermissions` 方法中的线程阻塞导致的服务器崩溃问题。通过使用 `ConcurrentLinkedHashMap` 替代阻塞线程来解决此问题。
  • 移除了自动更新功能。
  • 移除了对 NetEvents、LilyPad、Spout 和 Glowstone 的支持。
  • 配置文件已更新,请删除旧配置文件并重新设置。

🧪 测试环境

  • 原生 Minecraft 版本:1.19
  • 测试 Minecraft 版本:1.19.3-4

插件已在生产服务器上经过 1.19.3-4 版本的测试。平均插件的加载安静时间不超过每个 tick 0.05 毫秒。在机器人攻击期间(10 bps),观察到每个 tick 0.3 毫秒。

📦 版本信息

本版本基于源代码 STABLE-1.23.4

⚙️ 配置示例

配置文件(`config.yml`)示例如下:

    
config-version: 10
permissions:
  default:
    default: 0
    children:
      pex.prot: true
  admin:
    default: 1
    children:
      '*': true
  owner:
    default: 1
    children:
      admin: true
      pex.bypass.*: true
      pex.import: true
      pex.export: true
      pex.debug: true
      pex.reload: true
      pex.user.*: true
      pex.group.*: true
      pex.superadmin: true
  examplegroup:
    prefix: '&eExample Group'
    suffix: '&7'
    permissions:
    - 'example.permission'
    options:
      example_option: 'example_value'
schema-version: 1
debug: false
user-inheritance-max-depth: 4
group-inheritance-max-depth: 4
backends:
  file:
    type: file
    file: permissions.json
  sql:
    type: sql
    driver: H2
    url: jdbc:h2:./permissions
    user: myuser
    password: password
  mongodb:
    type: mongodb
    host: localhost
    port: 27017
    database: minecraft
    user: myuser
    password: password
  test:
    type: test
contexts:
  server:
    type: string
    allowed:
    - one
    - two
    - three
  world:
    type: string
user-defaults:
  options:
    luckperms: 'is-better'
  permissions:
  - 'example.user.permission'
  transient:
    prefix: '&aTransient Prefix '
    suffix: '&b Transient Suffix'
groups:
  examplegroup:
    options:
      example_group_option: 'example_group_value'
    permissions:
    - 'example.group.permission'
  transientgroup:
    options:
      example_transientgroup_option: 'example_transientgroup_value'
    permissions:
    - 'example.transientgroup.permission'