MaceSMP
一款轻量级的“生命窃取”风格插件,完全专注于战锤(Mace)。
玩家首次加入服务器时会获得一把绑定型初始战锤。每次击杀其他玩家即可获得战锤点数。通过简洁的 GUI 商店(/maceshop)消耗这些点数,为你的战锤附魔强大的附魔。
原版附魔台、铁砧(书籍)和砂轮对战锤完全禁用——为其附魔的唯一途径是通过点数系统。
目标版本: Paper 1.21.4+ (Java 21)
版本: b2.5
作者: UniDex101
功能特性
- 玩家首次加入时赠送初始战锤(已绑定至该玩家)
- crafted 制作的战锤会自动绑定给制作器
- 击杀 → 点数系统,并带有防刷机制(仅计算最近 3 名不同的受害者)
- 现代双格 GUI 商店(
/maceshop)
- 6 种可购买的附魔,支持配置最大等级:
- 密度(Density)(V)
- 穿透(Breach)(IV)
- 风爆(Wind Burst)(III)
- 火焰附加(Fire Aspect)(II)
- 耐久(Unbreaking)(III)
- 经验修补(Mending)(I)
- 强力防止绕过原版附魔机制
- 允许在铁砧上纯重命名战锤
- 完整支持 MiniMessage 消息格式
- 简单的 YAML 玩家数据存储
截图
商店界面

拥有的战锤

统计数据

合成战锤

保护机制示例
命令
| 命令 |
描述 |
权限节点 |
别名 |
/maceshop |
打开战锤附魔 GUI |
macesmp.shop |
/mshop |
/buy <enchant> |
购买/升级附魔(手持战锤) |
macesmp.buy |
/macebuy |
/macestats |
查看你的点数、击杀数、死亡数及拥有的战锤 |
macesmp.stats |
/mstats |
所有权限默认均为 true。
安装
- 下载最新的
.jar 文件(或自行构建)。教程
- 将其放入服务器的
plugins 文件夹中。
- 重启 / 重载服务器。
- (可选)根据需要编辑
plugins/MaceSMP/config.yml。
配置
(plugins/MaceSMP/config.yml)
points-per-kill: 1
last-kills-reset-minutes: 3
last-kills-max-size: 3
enchant-cost: 1 # 每级所需点数
max-levels:
density: 5
breach: 4
wind_burst: 3
fire_aspect: 2
unbreaking: 3
mending: 1
所有消息均支持 MiniMessage 标签(<red>, <gold>, <yellow> 等)。
从源码构建
要求: Java 21
git clone https://github.com/UniDex101/macesmp-paper.git
cd macesmp-paper
gradlew build
生成的 jar 包将出现在 build/libs/MaceSMP-b2.5.jar
文档
如需深入了解所有权系统、防刷逻辑、保护监听器、GUI 代码以及如何添加新附魔,请参阅 DOCUMENTATION.md。
未来计划
- 排行榜(
/maceleaderboard)
- 公共战锤商店 NPC
- 通过 PDC 自定义附魔
- 购买时的视觉效果
- 重置战锤附魔的能力(需高额费用)
- 经济插件集成
许可证
CC0 ❤️❤️❤️
MaceSMP
A lightweight Lifesteal-style plugin focused entirely on the Mace.
Players spawn with a bound starter mace. Every time you kill another player you earn mace points. Spend those points in a clean GUI shop (/maceshop) to upgrade your mace with powerful enchants.
Vanilla Enchanting Table, Anvil (books), and Grindstone are completely blocked for maces — the only way to enchant them is through the point system.
Target: Paper 1.21.4+ (Java 21)
Version: b2.5
Author: UniDex101
Features
- Starter mace given on first join (bound to the player)
- Crafted maces are automatically bound to the crafter
- Kill → Points system with anti-farm protection (last 3 unique victims)
- Modern double-chest GUI shop (
/maceshop)
- 6 buyable enchants with configurable max levels:
- Density (V)
- Breach (IV)
- Wind Burst (III)
- Fire Aspect (II)
- Unbreaking (III)
- Mending (I)
- Strong protection against vanilla enchanting bypasses
- Pure renaming on anvil is still allowed
- Full MiniMessage support for messages
- Simple YAML player data storage
Screenshots
GUI Shop

Owned Mace

Stats

Crafting a Mace

Protection Examples
| Enchanting Table |
Anvil (books blocked) |
Grindstone |
 |
 |
 |
Commands
| Command |
Description |
Permission |
Aliases |
/maceshop |
Opens the mace enchant GUI |
macesmp.shop |
/mshop |
/buy <enchant> |
Buy/upgrade an enchant (hold mace) |
macesmp.buy |
/macebuy |
/macestats |
View your points, kills, deaths & owned maces |
macesmp.stats |
/mstats |
All permissions default to true.
Installation
- Download the latest
.jar (or build it yourself). Tutorial
- Drop it into your server’s
plugins folder.
- Restart / reload the server.
- (Optional) Edit
plugins/MaceSMP/config.yml to your liking.
Configuration
(plugins/MaceSMP/config.yml)
points-per-kill: 1
last-kills-reset-minutes: 3
last-kills-max-size: 3
enchant-cost: 1 # Points per level
max-levels:
density: 5
breach: 4
wind_burst: 3
fire_aspect: 2
unbreaking: 3
mending: 1
All messages support MiniMessage tags (<red>, <gold>, <yellow>, etc.).
Build from source
Requirements: Java 21
git clone https://github.com/UniDex101/macesmp-paper.git
cd macesmp-paper
gradlew build
The jar will appear in build/libs/MaceSMP-b2.5.jar
Documentation
For a deep dive into the ownership system, anti-farm logic, protection listeners, GUI code, and how to add new enchants, see DOCUMENTATION.md.
Future ideas
- Leaderboard (
/maceleaderboard)
- Public mace shop NPC
- Custom enchants via PDC
- Visual effects on purchase
- Ability to reset mace enchants (expensive)
- Economy plugin integration
LICENSE
CC0 ❤️❤️❤️
评论 0
登录后参与评分
还没有评论,来抢沙发吧