Fire Plugin

插件

· 作者 cyx012113

一款高级服务器实用插件,提供世界保护、经济系统、广播系统、反垃圾信息和邀请功能。

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

最新 2.0.0+MIT · 1.21.11 · Bukkit / Paper

一键开服(送7天)

? FirePlugin

MIT License

从版本 2.0.0 + MIT 开始,源代码许可证已从 CC BY-SA 4.0 更改为 MIT 许可证。

Version 2.0.0 – 一款适用于 Paper 1.21+ 的轻量级高性能服务器实用插件。
它提供基于世界的经济重置、方块保护、建筑限制、高级世界规则、反垃圾邮件、广播积分系统以及可点击的邀请系统。


✨ Features

  • Economy reset – 自动清除指定世界中玩家的 Vault 余额(支持正则表达式/通配符)。
  • Block protection – 只有玩家放置的方块才能被破坏、烧毁或受爆炸影响。
  • Build restriction – 防止在选定世界中放置方块。
  • World rules – 每个世界的选项:
    • 禁用 PvP
    • 使玩家无敌
    • 无限饱和度(不会饥饿)
    • 虚空重生(传送到世界出生点而不是死亡)
  • Anti‑spam – 限制单位时间内的聊天消息数量。
  • Broadcast system – 玩家消耗积分来发送全服消息。积分按玩家存储,管理员可以进行管理。
  • Invite system – 向个人全体发送可点击的邀请。受邀玩家点击消息即可直接传送到邀请者的世界。
  • All world rules support regex/wildcard patterns (e.g. lobby*, pvp-*, *).
  • Bypass permissions – 每种限制都有独立的权限节点。
  • Efficient listener‑based design – 无需为已放置的方块进行性能消耗巨大的持久化存储。

? Installation

  1. 下载最新的 fire-2.0.0.jar。
  2. 将其放入服务器的 plugins/ 文件夹中。
  3. 重启服务器。
  4. 根据需要配置 plugins/fire/config.yml(见下文)。
  5. 随时使用 /fireadmin reload 重新加载配置。

? Commands

Command & Aliases Permission Description
/broadcast <message> = /bc <message> fire.broadcast.use 发送广播(消耗 1 积分)。
/broadcastadmin add <player> <amount> = /bcadmin add ... fire.broadcast.admin 为玩家添加广播积分。
/broadcastadmin set <player> <amount> fire.broadcast.admin 将玩家的积分设置为特定数量。
/broadcastadmin clear <player> fire.broadcast.admin 将玩家的积分重置为 0。
/broadcastadmin check <player> fire.broadcast.admin 显示玩家剩余的积分。
/invite <player|all> [world] = /inv ... fire.invite.send 向玩家或所有人发送邀请。可选世界名称。
/invite accept <inviter> fire.invite.join 接受邀请并传送到邀请者的世界。
/fireadmin reload = /fadmin reload fire.admin 重新加载插件配置。

? Permissions

Node Default Description
fire.bypass.clear op 防止在重置世界中重置经济。
fire.bypass.block op 允许破坏任何方块(绕过方块保护)。
fire.bypass.build op 允许在 no-build-worlds 中放置方块。
fire.broadcast.use true 允许使用 /broadcast。
fire.broadcast.admin op 允许管理广播积分。
fire.invite.send true 允许发送邀请。
fire.invite.join true 允许接受邀请。
fire.admin op 允许重新加载插件。

⚙️ Configuration (config.yml)

# Worlds where player balances are cleared (regex/wildcard)
economy-reset-worlds:
  - "Lobby"
  - "lobby_*"
economy-reset-interval-ticks: 1200 # 20 ticks = 1 sec

# Worlds where only player‑placed blocks can be broken/burned/exploded
block-protection-worlds:
  - "*"

# Worlds where block placement is forbidden (requires fire.bypass.build)
no-build-worlds:
  - "Lobby"
  - "hub*"

# Worlds where PvP is disabled
pvp-disabled-worlds:
  - "Lobby"

# Worlds where players take no damage (invincible)
invincible-worlds:
  - "Lobby"

# Worlds where hunger never decreases
saturate-worlds:
  - "Lobby"

# Worlds where falling into the void teleports you to world spawn
void-respawn-worlds:
  - "*"

# Anti‑spam settings
anti-spam:
  interval-seconds: 3
  max-messages: 2

# Broadcast system
broadcast:
  default-credits: 3 # Starting credits per player

# Invite cooldown (seconds)
invite:
  cooldown-seconds: 10

Note: Patterns support * wildcard and regular expressions. Example: "lobby*" matches lobby, lobby_1, lobby_world, etc.


? Building from source

  1. Clone or download the source code.
  2. Ensure you have Java 21 and Maven installed.
  3. Run mvn clean package.
  4. The compiled JAR will be in target/fire-2.0.0.jar.

? License

This project is licensed under the MIT license.


? Support

For issues or suggestions, please contact the plugin author: cyx012113 (Discord / GitHub).
Pull requests and contributions are welcome under the same license.

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源