SwissKnife ?️
SwissKnife 是一款专为 PaperMC 定制的实用插件,旨在解决一个具体问题:现有通知工具缺乏灵活性。
为满足生产服务器的独特需求而开发,它将必要的警报和玩家引导工具有机整合到一个高度可定制的包中。
✨ 功能特性
-
自定义欢迎系统: 玩家加入时,使用完全可定制的主题(Title)、副标题(Subtitle)和聊天消息进行欢迎。
-
世界与大厅传送系统: 玩家加入或切换世界时,自动将其传送到指定的固定出生点。非常适合管理大厅、竞技场、PvP 区域、小游戏、跑酷地图、AFK 区域或多世界服务器架构。
-
动态 BossBar 与死亡指南针:
- 显示自定义 BossBar 消息。
- 内置指南针,指向玩家最后 5 次死亡的地点。
- 智能优先级: BossBar 会在Boss战或突袭期间自动隐藏,以确保玩家专注于战斗。
-
计划重启提醒: 设置服务器维护、更新或备份的自动倒计时和消息。
- 注意: 此功能仅处理通知;实际的重启操作应通过 Cron 任务或 Pterodactyl 计划任务来管理。
- 现代格式支持: 全面支持 MiniMessage(丰富颜色/事件)和 PlaceholderAPI 集成,用于所有消息。
?️ 依赖要求
- 服务端: PaperMC (推荐版本:26.1.2)
- 依赖项: GriefPrevention (必需)
? 安装方法
- 从发布页面下载最新的
.jar文件。 - 确保服务器上已安装 PlaceholderAPI。
- 将
swissknife.jar放入/plugins文件夹。 - 重启或重载服务器。
⌨️ 命令列表
| 命令 | 描述 | 权限 |
|---|---|---|
/swissknife reload |
重载配置文件。 | Admin |
⚙️ 配置说明
配置文件将在 plugins/SwissKnife/config.yml 生成。
SwissKnife 的所有功能都设计为可个性化定制。你可以使用 config.yml 开启或关闭模块,并调整每条消息以匹配服务器的风格。
本插件支持 MiniMessage (Adventure) 标签以实现丰富的文本格式,并支持内部占位符以提供动态信息。
# welcome alerts settings
welcome:
enabled: true
title: "<gold>Server <aqua>Name"
subtitle: "<gray>Welcome <white>%player_name%</white>!"
message: |
<green>Welcome back to the server, <white>%player_name%!
<gold>• <yellow>Use <gold>/home <yellow>to return to your base.
<gold>• <yellow>Use <gold>/claim <yellow>to protect a new territory.
<gold>• <yellow>Join our <gold>Discord <yellow>to report any issues!
<aqua>[NOTICE] <white>This server may have players recording or streaming.
<gray>Please avoid sharing personal info or using inappropriate language.
# restart alerts settings
restart:
enabled: true
schedules:
- "3:00"
- "12:00"
- "18:19"
alerts: [1800, 600, 60, 30, 10, 3, 2, 1]
messages:
minutes: "<yellow>The server will restart in <white># <yellow>minutes!"
minute: "<yellow>The server will restart in <white># <yellow>minute!"
seconds: "<yellow>The server will restart in <white># <yellow>seconds!"
second: "<yellow>The server will restart in <white># <yellow>second!"
restarting: "<red>Restarting now..."
# hud settings
hud:
# action bar settings
actionbar:
enabled: true
message: "Next restart at <gray>%swissknife_restarttime_formated%"
# boss bar settings
bossbar:
enabled: true
message: "<gray>Player: <white>%player_name% <red>❤ %player_health_rounded%"
hide-during-raids: true
hide-near-bosses: true
compass:
enabled: true
north:
icon: 'N'
color: "<red><bold>"
south:
icon: 'S'
color: "<green>"
east:
icon: 'E'
color: "<blue>"
west:
icon: 'W'
color: "<aqua>"
divider:
value: " - - | - - "
color: "<gray>"
waypoints:
death:
enabled: true
icon: '☠'
color: "<white>"
despawn-time: 1800
messages:
death: "#I <yellow>%player_name% died at location <white>#X #Y #Z (#W)."
near: "<yellow>You are close to your items!"
waypoint:
enabled: false
icon: 'V'
note: "TODO"
spawn:
enabled: false
icon: '#'
node: "TODO"
# hub
hub:
# force player to TP when join and world change,
# use it in lobby, minigames, afk and any other world...
teleport:
enabled: false
hub-world: "world"
worlds:
world:
x: 0.0
y: 0.0
z: 0.0
angle: 0.0
onChange: true
onRespawn: true
pvp:
x: 0.0
y: 0.0
z: 0.0
angle: 0.0
onChange: true
onRespawn: false
parkour:
x: 0.0
y: 0.0
z: 0.0
angle: 0.0
onChange: true
onRespawn: false
?️ 开发指南
基于 Kotlin 构建,适用于 Paper API。
从源代码构建:
# Clone the repository
git clone [https://github.com/alexribeirodesa/paper-swissknife.git](https://github.com/alexribeirodesa/paper-swissknife.git)
# Build with Gradle
./gradlew build
☕ 支持本项目
如果本插件对你的服务器有所帮助,请考虑支持其开发!
每一杯咖啡都能帮助我保持 "Paper Projects" 系列的更新与免费。
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
使床在所有维度中爆炸的模组
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧