NxCodex

插件

· 作者 NoxuWT

Codex 是一个 Minecraft 插件,提供可交互的区域发现菜单,并基于玩家等级设置定时传送功能。? 依赖项:HeadDatabase ⭐ 推荐:LuckPerms ? 兼容性:Minecraft 1.16.5 → 1.21.x

0 本站下载 0 关注 更新于 5 个月前

最新 1.5.0 · 26.1.2 · Paper / Purpur

一键开服(送7天)

特性


?️ 区域发现系统:玩家进入 WorldGuard 区域时会自动发现该区域并获得自定义奖励。

? 完全可配置的 GUI:基于渐变的精美菜单,支持锁定/未锁定状态、自定义物品及 HeadDatabase 支持。

? 玩家进度追踪:持久化数据库存储(H2、SQLite 或 MySQL)记录所有玩家的发现进度。

⏱️ 智能冷却系统:基于 LuckPerms 组别的传送冷却时间,管理员可绕过限制。

? 丰富的集成支持:支持 WorldGuard 区域、WorldEdit、LuckPerms 组别、ItemsAdder 和 HeadDatabase。

? 游戏内区域编辑器:通过直观的 GUI 直接创建、编辑和删除区域,无需触碰配置文件。

? 多数据库支持:根据您的服务器需求在 H2(嵌入式)、SQLite 或 MySQL 之间进行选择。

? 渐变与十六进制颜色:在所有消息和菜单中全面支持颜色渐变和十六进制颜色。

? 更新通知器:自动检查新版本并在玩家加入时通知管理员。


命令

玩家命令

命令 描述
/codex 打开主 Codex 菜单
/codex help 显示命令帮助
/codex stats 查看已发现的区域
/codex list 列出所有可用区域

管理员命令

命令 描述
/codex create <name> 创建新区域
/codex delete <name> 删除现有区域
/codex edit <name> <field> <value> 编辑区域属性
/codex editor <name> 打开区域的 GUI 编辑器
/codex reload 重新加载配置
/codex reset 重置所有玩家的发现进度

权限

权限 描述 默认值
codex.use 使用玩家命令 true
codex.view 查看已发现的区域 true
codex.list 列出所有区域 true
codex.create 创建区域 op
codex.edit 编辑区域 op
codex.delete 删除区域 op
codex.admin 所有管理员权限 op
codex.reset 重置所有发现进度 op

配置

config.yml

prefix: '<gradient:#FCEF00:#FFF652><bold>Codex</bold></gradient> &7» '

database:
  # h2, sqlite or mysql
  type: h2
  # H2 / SQLite settings (file-based)
  file: codex
  # MySQL settings (only used when type: mysql)
  host: localhost
  port: 3306
  name: nxcodex
  username: root
  password: ''

private-games:
  enabled: true
  password-length: 4

number-formatting:
  mode: 0  # 0 = formatted (1,000), 1 = short (1K), 2 = raw (1000.00)
  formatted: '#,###.##'
  short: en_US

update-notifier:
  enabled: true
  on-join: true

integration:
  itemsadder:
    enabled: true
    plugin: "ItemsAdder"
  head-database:
    enabled: true
    plugin: "HeadDatabase"

teleportation:
  # LuckPerms group-based cooldowns
  enabled: true
  cooldown:
    default: 5    # seconds
    admin: 0
    vip: 3        # custom group example

codex.yml

menu:
  title: "<gradient:#FCEF00:#FFF652><bold>Codex</bold></gradient>"
  size: 54
  items:
    filler:
      material: "GRAY_STAINED_GLASS_PANE"
      slot: [0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,44,45,53]
      name: " "
    locked_material:
      material: "BARRIER"
      name: "<gradient:#FCEF00:#FFF652><bold>Locked</bold></gradient>"
      lore:
        - "&7This zone is locked."
        - "&7You cannot access it yet."

codex:
  zone:
    spawn:
      slot: 10
      material: "GRASS_BLOCK"
      # custom-model-data: 1234  # Optional
      # hdb: "12345"  # HeadDatabase ID
      name: "<gradient:#FCEF00:#FFF652><bold>Spawn</bold></gradient>"
      lore:
        - "&7The main spawn point."
        - "&7Click to teleport."
      cordinates:
        x: 0
        y: 64
        z: 0
        world: "world"
      region: "spawn_region"  # WorldGuard region
      reward:
        commands:
          - "give %player_name% diamond 5"
          - "eco give %player_name% 1000"
    
    dungeon:
      slot: 11
      material: "NETHERITE_SWORD"
      name: "<gradient:#8B0000:#FF0000><bold>Dark Dungeon</bold></gradient>"
      lore:
        - "&7A dangerous and mysterious place"
        - "&cRecommended level: 50+"
      cordinates:
        x: -500
        y: 30
        z: -500
        world: "world"
      region: "dark_dungeon"
      reward:
        commands:
          - "give %player_name% diamond_sword{Enchantments:[{id:sharpness,lvl:5}]} 1"
          - "eco give %player_name% 5000"

lang.yml

help:
  - '<gradient:#FCEF00:#FFF652><bold>Codex</bold></gradient> &7» &eHelp'
  - '&#27B7F5➤ &f/codex &7- Opens the Codex menu'
  - '&#27B7F5➤ &f/codex create <name> &7- Creates a new zone'
  - '&#27B7F5➤ &f/codex delete <name> &7- Deletes a zone'
  - '&#27B7F5➤ &f/codex edit <name> <field> <value> &7- Edits a zone'
  - '&#27B7F5➤ &f/codex list &7- Lists all zones'
  - '&#27B7F5➤ &f/codex reload &7- Reloads configuration'
  - '&#27B7F5➤ &f/codex reset &7- Resets all discoveries'
  - '&#27B7F5➤ &f/codex editor <name> &7- Opens zone editor'
  - '&#27B7F5➤ &f/codex help &7- Shows this help'

discovery:
  - '&eYou discovered the zone &f%name%&e!'
  - '&eReward:'
  - '&7%reward%'

teleport: success: '&a已传送至区域 &f%name%&a。' failed: '&c传送失败。请检查该区域是否存在以及世界是否已加载。'

error: no-permission: '&c您没有权限执行此命令。' zone-not-found: '&c区域 &f%name% &c不存在。' cooldown: '&c请等待 &f%time%s &c后再进行传送。'


由 **NoxuWT** ❤️ 开发

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源