LimitedMaces
Limited Maces 是一款小型插件,允许服务器控制玩家可用的锤子数量。它非常适合硬核服务器、生存多人游戏(SMP)或活动服务器!
想要像 Lifesteal SMP 那样的“一锤服务器”?只需将锤子限制设置为 1!
⚠️ 警告
自版本 1.3.0 起,已正式停止对 Spigot 和 Bukkit 的支持!虽然不太可能,但该插件可能与 Spigot/Bukkit 兼容;然而,由于这些服务器软件被视为过时,我们将不会对其进行测试或提供官方支持。
功能
命令
| 命令 |
权限 |
描述 |
/maces |
limitedmaces.use |
检查被追踪的锤子 |
/maces reload |
limitedmaces.reload |
重新加载配置文件 |
/maces setlimit <n> |
limitedmaces.setlimit |
设置锤子数量 |
/maces enchanting <on|off> |
limitedmaces.enchanting |
开启/关闭锤子附魔 |
/getuntrackedmace |
limitedmaces.getuntracked |
获取一把未被追踪的锤子(忽略限制) |
/clearuntrackedmaces |
limitedmaces.clearuntracked |
清除所有未被追踪的锤子 |
/removemace <id> |
`limitedmaces |
|
配置
配置文件位置:plugins/LimitedMaces/config.yml
数据文件位置:plugins/LimitedMaces/maces.yml。除非你知道自己在做什么,否则请勿编辑此文件。
默认 / 示例 config.yml
version: 1.4.0
# 服务器上允许的锤子最大数量
allowed-maces: 3
mace-cooldown-seconds: 0
# 允许在锤子上附魔
# 设置为 false 时,不允许将锤子放入附魔台/铁砧
allow-mace-enchanting: true
messages:
prefix: "&6[LimitedMaces]&r "
crafted-broadcast: "&a%player% &7制作了 &f%amount%&7 个锤子! &7(%current%/%max%)"
destroyed-broadcast: "&c一把锤子被摧毁了! &7(最后持有者为 &f%lastHolder%&7) &7(%current%/%max%)"
containers-blocked: "&c你不能将锤子放入任何容器中。"
limit-reached: "&c已达到锤子限制。必须
从 MultiMace 迁移
如果你是从使用名称 "MultiMace" 的旧版本(1.1.3 及以下版本)迁移过来:
- 插件将自动检测旧的插件文件夹:
plugins/MultiMace/
- 配置和数据将迁移到
plugins/LimitedMaces/
- 成功迁移后,旧文件夹将被自动删除。
- 前缀将从 "MultiMace" 更改为 "LimitedMaces"。任何自定义前缀也将被替换!
如果你在以上过程中遇到问题,或者未自动完成,请随时访问我们的 Discord 并创建工单。链接可在侧边栏找到。
兼容性
- Minecraft 1.21.x - 26.x
- 轻量级
- 无需依赖
LimitedMaces
Limited Maces is a small plugin that allows servers to control the number of Maces available to players. It's great for hardcore servers, SMPs, or event servers!
Want a one-mace server like the Lifesteal SMP? Just set the mace limit to 1!
⚠️ Warning
Spigot and Bukkit support has officially been dropped as of version 1.3.0! Although unlikely, the plugin may work with Spigot/Bukkit; however, we will not test or officially support these server softwares since they are considered outdated.
Features
-
Limit total maces
Allows servers to set a limit on how many maces can be obtained through crafting.
-
Mace Container Restrictions
Maces cannot be stored in:
- Chests
- Barrels
- Shulker Boxes
- Hoppers
- All other containers
-
Mace Crafting Restrictions
- The mace recipe becomes automatically disabled when the limit is reached
- Autocrafters cannot craft maces
- Messages will be sent in chat if any mace's state changes (Discord webhook support may come in the future)
-
Destroyed Maces
- When the mace gets destroyed:
- A message is sent in chat
- Another mace can be crafted (up to the maximum limit)
-
Illegal Mace Detector
- All tracked and duplicate maces get deleted. This has the side effect of preventing creative users from playing around with maces.
-
Mace Hit Cooldown
- Set
mace-cooldown-seconds to a positive whole number and run /maces reload to enable it. The default is 0 (disabled).
- After a player deals damage with a mace, they must wait that many seconds before attacking with any mace again. Other weapons remain usable.
-
Enchanted Maces
- Decide whether you want to make the maces enchantable or not
- If
allow-mace-enchanting is enabled, maces can be put in enchant tables and anvils.
- If it is disabled, maces cannot be put in any enchantment table or anvil and become completely unenchantable
Commands
| Command |
Permission |
Description |
/maces |
limitedmaces.use |
Check tracked maces |
/maces reload |
limitedmaces.reload |
Reload configuration file |
/maces setlimit <n> |
limitedmaces.setlimit |
Set the number of maces |
/maces enchanting <on|off> |
limitedmaces.enchanting |
Turn on/off mace enchanting |
/getuntrackedmace |
limitedmaces.getuntracked |
Get an untracked mace (ignores the limit) |
/clearuntrackedmaces |
limitedmaces.clearuntracked |
Clear all untracked maces |
/removemace <id> |
`limitedmaces |
|
Configuration
Configuration file location: plugins/LimitedMaces/config.yml
Data file location: plugins/LimitedMaces/maces.yml. DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING.
Default / Example config.yml
version: 1.4.0
# Max number of maces that are allowed on the server
allowed-maces: 3
mace-cooldown-seconds: 0
# Allow enchants on the maces
# When set to false, maces won't be allowed to be placed in enchant tables / anvils
allow-mace-enchanting: true
messages:
prefix: "&6[LimitedMaces]&r "
crafted-broadcast: "&a%player% &7crafted &f%amount%&7 mace(s)! &7(%current%/%max%)"
destroyed-broadcast: "&cA mace was destroyed! &7(last held by &f%lastHolder%&7) &7(%current%/%max%)"
containers-blocked: "&cYou can't put the mace in any container."
limit-reached: "&cMace limit reached. A mace must
Migrating from MultiMace
In case you are coming from an older release (version 1.1.3 and below) using the name "MultiMace":
- Plugin will detect automatically the old plugin folder:
plugins/MultiMace/
- Configurations/data will migrate to
plugins/LimitedMaces/
- Old folder will be automatically deleted after successful migration.
- Prefix will change from "MultiMace" to "LimitedMaces". Any custom prefix will be replaced as well!
Should you experience problems regarding the process above or it is not automatically done, feel free to stop by our Discord and create a ticket. Link available on the sidebar.
Compatibility
- Minecraft 1.21.x - 26.x
- Lightweight
- No dependencies needed
评论 0
登录后参与评分
还没有评论,来抢沙发吧