?️ Gangland Warfare
将你的服务器变成一个鲜活的犯罪世界。
建立帮派,对抗敌对势力,使用全套枪械、冷兵器和爆炸物,驰骋街头,
逃避(或成为)法律的制裁。
❓ 为什么选择 Gangland Warfare?
Gangland Warfare 不仅仅是一款普通的枪战或 PvP 插件。
它是一个专为 GTA 风格、角色扮演和竞技服务器设计的完整犯罪生态系统。
玩家不仅仅是战斗——他们还可以:
- ? 创建和管理拥有内部层级和共享金库的帮派
- ? 通过金钱、声望和领土来控制权力
- ? 通过赏金和通缉等级猎杀玩家
- ? 通过等级、头衔和战利品进行成长
- ? 躲避警察追捕,或者戴上警徽成为法律本身
- ? 与平民共享街道——抢劫他们,或为此付出代价
- ? 与固定的 Trader NPCs 进行交易——购买、以物易物、出售或小费
- ? 在跨越四个层级的余额阶梯中,向 Banker NPCs 存入现金
- ? 被捕——然后缴纳保释金、贿赂警察,或服刑
- ? 驾驶汽车,喷射背包飞行,并在加油站加油
⭐ 核心功能
1. ? 高级武器系统
一个完全自定义的武器引擎,独立于原版战斗机制,现在包含
五种武器类别。
- 五种武器类别 —— 枪支、近战、燃烧、生物和投掷类——每类都有各自的动作类、YAML 架构和物理效果
- 通过单独的 YAML 文件配置武器——每种武器拥有独立的属性、声音和行为
- 多种射击模式:单发、点射和全自动,且每次射击有独立的冷却时间
- 弹药类型和换弹机制——武器会耗尽弹药,必须补充弹匣
- 武器耐久度会随着使用而消耗
- 投射物类型:子弹、曳光弹、火箭弹和霰弹(散射式)
- 子弹重力 —— 子弹在远距离下坠,奖励射程补偿技巧
- 头部暴击和要害打击系统,具有可配置的命中几率和额外伤害加成
- 子弹穿透方块和多个实体,并带有伤害衰减
- 在可配置的表面材质上跳弹——沿着方块法线方向反弹
- 精度散布随着连续射击而增加,并随时间重置
- 后坐力模式会在每次射击时推动视角
- 子弹飞掠和撞击音效会被附近的玩家听到
- 武器修饰符:穿甲、固定伤害、破坏方块和曳光弹
- 方块再生 —— 被破坏的方块可以根据武器设置恢复、仅出现裂痕或保持摧毁状态(
RESTORE, CRACK_ONLY, DESTROY)
- 近战武器 —— 刀具、砍刀和撬棍,具有攻击范围、击退效果和单次攻击冷却
- 燃烧武器 —— 类似火焰喷射器的锥形火焰喷洒,点燃其弧线范围内的所有物体
- 生物武器 —— 按住充能的注射器枪,在命中时施加药水效果
- 投掷物 —— 手榴弹、莫洛托夫鸡尾酒、闪光弹、烟雾弹和斧头,具备弹跳物理、引信计时、爆炸半径和可堆叠 UUID
- 世界中掉落武器的全息投影
- ? 资源包集成以支持自定义音效
2. ? 帮派系统
帮派是该插件的社会核心。
- 支付可配置的费用创建帮派——创建者将成为所有者
- 邀请玩家,提升或降级成员,踢出低阶成员
- 分层级头衔体系,继承自定义权限——从招募兵到首领
- ?? 帮派联盟,支持双向协议和友军火力保护
- 共享帮派金库,并追踪每位成员的贡献
- 帮派解散时按比例分配金库资金
- 可自定义帮派名称、显示名称、颜色和描述
- 仅限帮派成员使用的传送点,作为私人安全区
3. ? 经济与银行
每个玩家拥有两个独立的资金池——手持现金和分级银行账户余额,以及充当实体存款柜台的 Banker NPC。
- 个人现金余额——用于支付帮派创建、传送、赏金、商人购买等费用
- 四层银行阶梯 —— 基础 / 高级 / 精英 / 保险库,每层拥有独立的最高余额、每日存款上限、
利率、死亡损失折扣以及每周/每月免费贷款存款
- ? Banker NPC —— 一个静止的 Citizens NPC,右键点击即可打开银行界面;你可以放置任意数量,
无需对每个 NPC 进行单独配置
- ? 滚动窗口每日上限 —— 存款限制基于真实的 24 小时窗口,而非直到午夜
- ? 持续利息 —— 银行账户余额每 24 小时赚取一部分利息,上限锁定为该层级的
Max_Balance
- ? 死亡惩罚:损失可配置比例的 现金(银行账户余额是安全的;更高层级可减少损失比例)
- BigDecimal 货币计算 —— 银行算术使用
BigDecimal,确保大额余额不会发生漂移
- 现金拾取物品 —— 掉落物是玩家可以拾取的真实物品,在
money.yml 中有小/中/大三种变体
- 按来源的掉落规则 ——
Player_Kill、Civilian_Kill、Cop_Kill 等每种情况选择不同的变体、金额范围和掉落几率
- 支持 Vault 集成以实现跨插件兼容性
- 可选的玩家目标参数,适用于所有银行命令——
/glw bank deposit <amount> [player]、/glw bank withdraw <amount> [player]
- 管理员经济命令,可为单个玩家或所有在线玩家存款、取款、设置或重置余额
4. ? 赏金与通缉系统
在所有 PvP 之上增加了一层风险与回报机制。
- 击杀连击积累通缉星级——最多可达 ⭐⭐⭐⭐⭐,后果逐渐升级
- 每个星级都会生成更多警察,并以递增的速度扣除玩家的金钱
- 星星会随时间衰减,高星玩家两次减少之间的等待时间更长
- 攻击非敌意平民现在也会增加通缉等级
- 死亡会立即清除所有通缉星星
- ? 赏金可以由玩家花费自己的金钱设立,或由管理员设定
- 对于持续处于高热度状态的玩家,击杀赏金会随时间倍增
- 可配置每个玩家的最大赏金上限
/glw wanted clear <player> —— 管理员命令,在不杀死玩家的情况下重置星星
5. ? 警察与罪犯 —— 模块完成
完全由 Citizens 驱动的 AI 警察 NPC,与平民共享统一的 NPC 基础架构。0.7.5-DEV 版本关闭此模块 —— 商人、银行家和保释功能均收录于本次更新中。
- 当玩家累积通缉星级时,警察会在世界中生成
- 五种警衔等级 —— 警官、警长、督察、SWAT(特种武器和战术部队)和军事警察 —— 拥有更高的属性和更精良的装备
- ? AI 状态机:追击 → 战斗 → 戴手铐
- 警察通过共享的
NPC_Navigation 参数进行寻路,因此路径寻找的修复能同步适用于警察和平民
- 低级警察尝试戴手铐并逮捕;高级警察跳过戴手铐环节,直接采取致命手段
- 当一名警察进入战斗范围时,该小组内所有附近的警察都会收到警报
- 当范围内没有通缉目标时,警察会退回至锁定其最近一次攻击者的策略
- 3D 感知卸载 —— 当你爬上塔楼或挖坑时,警察不再消失
- 可配置的警察武器池 —— 支持原版物品或自定义 Gangland 武器
- 生成器放置系统,为未放置生成器的区域提供智能回退方案
- 警察数量通过可配置的公式随通缉等级动态缩放
CopDeathEvent 事件触发,供其他监听器对倒下的警官做出反应
6. ? 平民
一种新的 NPC 类,共享警察的 AI 基础 —— 漫步、逃跑或战斗。(交易功能已移至专用的 Trader NPCs —— 见下一节。)
- 平民类型在
civilians.yml 中定义,包含每种类型的实体、生命值、可穿戴物品、物品池、武器池、掉落物和 AI 配置文件
- 友好平民 会漫步并在危险面前逃跑;攻击他们会增加你的通缉等级
- 敌对平民 会使用其武器池中的武器还击
- 按类型设定的掉落几率 —— 友好和敌对平民分别使用不同的概率池进行战利品投掷
- 战斗难度配置 ——
EASY / NORMAL / HARD / DEADLY —— 缩放瞄准精度、反应时间和开火频率
- 群组将生成点与类型绑定,包含人口上限、激活半径和卸载半径 —— 当玩家走入范围时平民出现,当区域清空时消失
- 通过
settings.yml 中的 NPC_Navigation 与警察共享导航参数
/glw civilian … 命令用于手动生成、卸载和群组控制
7. ? 商人 NPC & 商店 API
静态且可受损的 Citizens NPC,运行完整的商店系统。
- 购买、以物易物、出售和小费 —— 每位商人具备四种不同的交易类型
- 六种内置性格特征 (
easygoing, hotheaded, stubborn, generous, shrewd, timid),具有可配置的情绪增益速率、朋友折扣、以物易物政策和最大生命值 —— 可在 trader_traits.yml 中添加自定义特征
- 基于玩家的情绪值 —— 仅正向标量,在购买和小费时提升;情绪值满时,商人提供最高
Min_Friend_Discount 的折扣
- 纯交换式以物易物 —— 以物易物不涉及金钱交易;物品价值根据商人的特征和商店类别费率进行评估
- 可击杀的商人 ——
Invulnerable: false 允许玩家抢劫商店
- 商店 API —— UI、持久化和交易管道位于共享的
gangland-ui/shop-api 模块中,为未来的商店界面提供支持
- 游戏内管理员编辑 —— 通过铁砧 GUI 生成、编辑商店密钥、编辑特征、重命名、移除 —— 日常无需折腾 YAML 文件
8. ? 监狱与拘留
成功逮捕后的结果 —— 提供四种释放途径。
- 成功给玩家戴上手铐的警察会启动拘留流程
- 被监禁的玩家会被关押在配置的监狱位置,其库存物品被没收
- ? 缴纳保释金 —— 收取随通缉等级缩放的费用;返还被没收的物品
- ? 贿赂警察 —— 手铐阶段(入狱前)的贿赂只要资金充足则必然成功;入狱阶段的贿赂需对抗配置的成功率,失败则会延长刑期
- ? 挣脱束缚 —— 被戴上手铐的玩家可以通过点击竞速逃脱(40 刻内点击 25 次)
- ⏲️ 服刑 —— 经过随通缉等级缩放的刑期后自动释放
- 管理员可以手动给玩家戴上手铐、监禁和释放
- 登出时被戴上手铐的玩家在重新加入时会自动路由至监狱
- 每条释放路径都汇入单一的
ReleasePipeline —— 确保被没收物品的恢复一致性
9. ? 小工具 —— 汽车与喷气背包
一个专用的小工具模块,用于可驾驶载具和部署设备。
- 汽车 —— 在
cars.yml 中定义的可驾驶载具,包含每辆车的最大速度、加速度和燃油容量
- 每辆停放的汽车都会保存到数据库(位置、燃油、排气侧),并在启动时重新加载 —— 路边停车在重启后依然存在
- 闲置汽车的晃动动画、换挡安全交互,以及专用的
refuel / defuel 命令
- 喷气背包 —— 副手装备的飞行小工具,具有递增推力、每刻滑翔耗油、粒子尾迹和音效
- 空油箱的喷气背包会触发限时加油程序,而不是在空中无声地熄火
- 共享燃料组件 —— 汽车和喷气背包使用相同的
FuelContract,因此加油物品和用户体验在所有小工具间保持一致
10. ? 战利品箱与奖励
随机生成的奖励容器,可放置在世界中的任何地方。
- 管理员可将任意箱子、桶或潜影盒设为战利品箱
- ⏳ 倒计时结束后,箱子才可被打开
- ? 倒计时期间箱子上方显示物品预览 — 避免盲目点击
- 五种稀有度等级:普通(Common)、非普通(Uncommon)、稀有(Rare)、史诗(Epic)和传说(Legendary)
- 高等级需要开锁器或钥匙 — 它们作为悬浮的世界内物品显示在箱子上方
支持资源包自定义
- 掉落概率池 — 按物品的
COMMON / UNCOMMON / RARE / EPIC / LEGENDARY 稀有度
决定每个物品的掉落频率;等级门控控制箱子可以从哪些表抽取 loot(而非针对单个物品)
- 战利品表包含武器、弹药、独特物品、金钱和经验值
- 三种内置战利品表:街头战利品(Street Loot)、军事战利品(Military Loot)和补给仓库(Supply Cache)
- 武器掉落物会以真实武器物品的形式出现,并在其上方显示悬浮的名称全息图
- 奖励还包括可配置的随机金钱和经验值数量
- 等级门控 — 某些等级要求玩家达到最低等级才能访问
11. ?️ 可穿戴装备
具有特殊伤害减免的自定义护甲部件。
- 可穿戴装备叠加在原版护甲之上,并接入 Gangland 的完整伤害处理管线
- 每个部件可配置的基础伤害减免百分比
- 七种防护特性:
REINFORCED(加固)、BULLETPROOF(防弹)、PADDED(加厚)、TOUGHENED(强化)、FIRE_RESISTANT(防火)、REACTIVE(反应式)和
LIGHTWEIGHT(轻量化)
- 多个部件的特性叠加提供综合保护
- 吸收伤害时耐久度会消耗
- 四种内置部件:警察背心、警察头盔、帮派夹克和重型背心
- 完全可通过
wearables.yml 进行配置 — 自由添加、修改或删除部件
12. ? 玩家升级
基于经验值的进度系统,用于限制对更高奖励的访问权限。
- 玩家通过击杀、拾取 loot 和游戏行为获得经验值
- 可配置的经验值公式 — 前期升级迅速,后期升级具有实质性的累积感
- 默认最大等级为 100
- 技能升级系统:花费金钱购买升级,每级成本递增
- 战利品箱等级设有等级要求
13. ?️ 传送点与传送
由管理员放置的命名传送目的地。
- 五种传送点类型:出生点(Spawn)、帮派(Gang)、安全区(Safe Zone)、任务(Quest)和全局(Global)
- 每个传送点可配置传送费用、等待时间和冷却时间
- ?️ 安全区内禁用玩家之间的 PvP
- 帮派传送点仅限特定帮派的成员使用
- 为每个传送点自动生成权限节点,以实现细粒度的访问控制
- 如果在等待时间内玩家移动或受到伤害,则取消传送
- 聊天输出包含悬停和点击事件,可直接触发传送
14. ? 交易告示牌
用于买卖武器和弹药的世界内告示牌。
- 放置告示牌,允许玩家以固定价格购买或出售武器和弹药
- 两种告示牌类型:武器告示牌和弹药告示牌
- 从告示牌购买的投掷物通过共享 UUID 与拾取的投掷物堆叠
- 无需额外插件 — 完全在 Gangland Warfare 内部运行
- 每个告示牌可配置物品、价格和数量
15. ? 记分板
玩家的实时状态显示。
- 动画标题,可配置滚动速度
- 显示金钱、等级、通缉星级、帮派名称和其他实时数值
- 支持多种记分板驱动方式
16. ? 独特物品
具有受控库存行为的特殊物品。
- ? 手机 — 永久位于最后一个快捷栏槽位,加入服务器和重生时发放,不可丢弃
- ? 开锁器 — 消耗品,用于解锁稀有(Rare)战利品箱
- ?️ 史诗钥匙和传说钥匙 — 用于开启史诗(Epic)和传说(Legendary)等级的宝箱
- 可配置加入时自动发放、槽位锁定、死亡掉落规则以及重复物品规则
17. ?️ 服务器基础设施
面向操作员和开发者的后端功能。
- 通过 HikariCP 支持 MySQL 和 SQLite — 在
settings.yml 中选择
- 基于 Beans 的引导流程 — 分阶段的依赖注入管线
(KERNEL → FILE → DATABASE → CONFIG → LIFECYCLE → LISTENER → COMMAND),自动注册带有
@Bean、@ListenerHandler 和 @CommandHandler 注解的类
- YAML 验证层 — 每个加载器都会报告未知键及其所在文件和行号,确保过期的设置不会在版本间静默残留
- 重载再生 — 缺失的配置部分会在执行
/glw reload 时重写;缺失的文件会从 jar 中重新创建并重试初始化
- 调试日志块 —
settings.yml 中提供按模块的 DEBUG 开关,无需 JVM 参数
- Vault 权限集成 — 软依赖;当缺少 Vault 时回退到内置权限系统
/glw permissions 命令用于在游戏中检查/授予/撤销权限
/gangland 是 /glw 的别名
- 批量数据库查询以减少单个查询的开销
- 自动定期保存数据和清理缓存
- ? 多语言消息支持,附带 jar 内置的回退机制
- 加入时自动加载资源包
- 通过 FastBoard 实现自定义记分板
- ? 公开的开发者 API,提供关于武器、警察、平民、商人、赏金等的事件
? 即将推出的功能
以下系统正在积极开发中:
- ? 保险箱破解小游戏和高级宝箱机制
- ⚔️ 帮派攻击和地盘争夺战
- ? 挑战和竞技活动
- ?️ 更多车辆类型(摩托车、船只、飞行器)
- ? 可购买的房屋和地产
- ? 玩家间市场 / 拍卖行
- ? 任务和任务系统
? 依赖要求
| 要求 |
详情 |
| Minecraft 版本 |
1.20+(已测试;早期版本部分实现) |
| Java |
Java 21 或更高版本 |
| 服务器平台 |
Spigot(未使用仅 Paper 的 API) |
| 必需插件 |
NBTAPI, Citizens |
| 可选插件 |
PlaceholderAPI, Vault, ViaVersion |
? 安装
- ⬇️ 从 Releases(发布)页面下载最新 JAR 文件。
- ? 停止你的 Minecraft 服务器。
- ? 将 JAR 文件放入服务器的
plugins/ 文件夹中。
- ▶️ 启动服务器以生成配置文件。
- ⚙️ 在
Gangland_Warfare/ 文件夹下配置该插件。
- ? 使用
/glw reload 应用配置更改,无需重启服务器。
❤️ 我的开发历程
Gangland Warfare 是五年热情开发的结晶,经历了无数次的重写、重构和不懈的改进。该插件最初名为 Cubed-GTA,现已从头开始完全重写,采用模块化、多模块架构,旨在提供极致的 Minecraft GTA 风格体验。
这一简单概念经过多个开发周期、倦怠期以及持续迭代,已演变为一款成熟的都市战争插件。代码库的每个部分都经过精心打磨,以确保稳定性、高性能以及沉浸式的游戏体验。
尽管完整的游戏循环仍在进一步完善中,但此开发版本代表了一个重要的里程碑。我们非常感谢社区的反馈——评论板块正是提供反馈的最佳场所。?
? 披露信息
? 自动更新检查器
插件启动时,会自动每 6 小时联系 SpigotMC API (api.spigotmc.org),以检查是否有新版本可用。这是一个只读请求——不会发送任何玩家数据或服务器数据。如果检测到更新,拥有相应权限的管理员将在游戏内收到通知。
? 自动资源包推送
如果在 settings.yml 中启用了资源包功能,当玩家加入服务器时,插件会自动向每位玩家发送资源包下载提示。玩家将被引导至由服务器管理员配置的 URL。
玩家可以接受或拒绝该提示;除非服务器管理员启用了“拒绝即踢出”选项,否则拒绝提示不会影响玩家的游戏体验。
? 支持与反馈
- ? Bug 报告:在 GitHub 仓库中提交 Issue
- ? 配置更改可通过
/glw reload 或重启服务器生效
- ? 完整文档请参阅 GitHub 页面
⚠️ 该插件正处于积极开发阶段。出现 Bug 是意料之中的。请报告问题,而不是留下低评分——每一份报告都至关重要。如果你喜欢它,别忘了留下 ⭐⭐⭐⭐⭐ 的好评!
所有命令均使用 /glw 分发器(别名:/gangland)。
?️ Gangland Warfare
Turn your server into a living crime world.
Build gangs, fight rivals, wield a full arsenal of firearms, blades, and explosives, drive the streets,
and outrun (or become) the law.
❓ Why Gangland Warfare?
Gangland Warfare is not just another gun or PvP plugin.
It is a complete crime ecosystem designed for GTA-style, roleplay, and competitive servers.
Players don't just fight — they:
- ? Create and manage gangs with internal hierarchies and shared banks
- ? Control power through money, reputation, and territory
- ? Hunt players with bounties and wanted levels
- ? Progress through levels, ranks, and loot
- ? Survive police pursuit or don a badge and become the law
- ? Share the streets with civilians — rob them, or answer for it
- ? Trade with stationary Trader NPCs — buy, barter, sell, or tip
- ? Deposit cash with Banker NPCs across a four-tier balance ladder
- ? Get arrested — then pay bail, bribe the cop, or serve your time
- ? Drive cars, fly jetpacks, and refuel at the pump
⭐ Core Features
1. ? Advanced Weapon System
A fully custom weapon engine entirely separate from vanilla combat, now with
five weapon categories.
- Five weapon categories — guns, melee, incendiary, biological, and
throwable — each with its own action class, YAML schema, and physics
- Configurable weapons via individual YAML files — each with its own stats,
sounds, and behavior
- Multiple fire modes: single, burst, and full-auto with per-shot cooldowns
- Ammo types and reload mechanics — weapons go dry, magazines must be
restocked
- Weapon durability that depletes with use
- Projectile types: bullet, flare, rocket, and spread (shotgun-style)
- Bullet gravity — shots drop over distance, rewarding range compensation
- Headshot and critical hit system with configurable chances and bonus damage
- Bullet penetration through blocks and multiple entities with damage falloff
- Ricochet off configurable surface materials — bounces along the block normal
- Accuracy spread that increases as you fire and resets over time
- Recoil patterns that push the camera per shot
- Bullet flyby and impact sounds heard by nearby players
- Weapon modifiers: armor piercing, flat damage, block breaking, and bullet
tracers
- Block regeneration — broken blocks can restore, uncrack, or stay
destroyed per weapon (
RESTORE, CRACK_ONLY, DESTROY)
- Melee weapons — knives, machetes, and crowbars with range, knockback,
and per-hit cooldowns
- Incendiary weapons — flamethrower-style cone fire spray that ignites
everything in its arc
- Biological weapons — hold-to-charge syringe guns that apply potion
effects on impact
- Throwables — grenades, molotovs, flashbangs, smoke grenades, and
tomahawks, with bounce physics, fuse timers, blast radius, and stackable
UUIDs
- In-world holograms for dropped weapons
- ? Resource pack integration for custom sounds
2. ? Gang System
Gangs are the social backbone of the plugin.
- Create a gang for a configurable fee — the creator becomes the owner
- Invite players, promote and demote members, and kick lower-ranked members
- Tiered rank hierarchy with custom permission inheritance — Recruit up to Leader
- ?? Gang alliances with bidirectional agreement and friendly-fire protection
- Shared gang bank with a per-member contribution tracker
- Proportional bank payout when a gang is disbanded
- Customizable gang name, display name, color, and description
- Gang-restricted waypoints that act as private safe zones
3. ? Economy & Banking
Every player has two separate money pools — cash on hand and a tiered bank balance — plus a Banker NPC that
serves as the physical deposit counter.
- Personal cash balance — spent on gang creation, teleportation, bounties, trader buys, and more
- Four-tier bank ladder — Basic / Premium / Elite / Vault, each with its own max balance, daily deposit cap,
interest rate, death-loss discount, and weekly / monthly free-loan deposits
- ? Banker NPC — a stationary Citizens NPC that opens the bank UI on right-click; scatter as many as you want
without per-NPC configuration
- ? Rolling-window daily cap — deposits are rate-limited over a true 24h window, not until midnight
- ? Continuous interest — bank balance earns a fraction per 24h, clamped at the tier
Max_Balance
- ? Death penalty: lose a configurable percentage of your cash (bank balance is safe; higher tiers reduce
the loss)
- BigDecimal money math — bank arithmetic uses
BigDecimal so large balances don't drift
- Cash pickup items — drops are real items players loot, with small / medium / large variations in
money.yml
- Per-source drop rules —
Player_Kill, Civilian_Kill, Cop_Kill, etc. each pick a variation, amount
range, and drop chance
- Vault integration support for cross-plugin compatibility
- Optional player targets on every bank command —
/glw bank deposit <amount> [player], /glw bank withdraw <amount> [player]
- Admin economy commands to deposit, withdraw, set, or reset balances for individual players or all online
players
4. ? Bounty & Wanted System
A risk-vs-reward layer on top of all PvP.
- Kill combos accumulate wanted stars — up to ⭐⭐⭐⭐⭐ with escalating consequences
- Each star tier spawns more cops and drains money from the player at an increasing rate
- Stars decay over time, with higher-star players waiting longer between each reduction
- Attacking a non-hostile civilian now also increments the wanted level
- Dying immediately clears all wanted stars
- ? Bounties can be placed by players spending their own money or set by admins
- Kill bounties multiply over time for players on sustained hot streaks
- Configurable caps on maximum bounty per player
/glw wanted clear <player> — admin command to reset stars without killing
5. ? Cops N Crooks — Module Complete
Fully AI-driven police NPCs powered by Citizens, sharing a unified NPC base
with civilians. 0.7.5-DEV closes this module — traders, bankers, and
bail all land in this release.
- Officers spawn in the world when a player accumulates wanted stars
- Five cop tiers — Officer, Sergeant, Lieutenant, SWAT, and Military — each
with higher stats and better equipment
- ? AI state machine: Pursuit → Combat → Cuffing
- Cops navigate via the shared
NPC_Navigation tuning, so path-finding fixes
land on cops and civilians in lock-step
- Lower-tier cops attempt to cuff and arrest; higher-tier cops skip cuffing
and go lethal
- When one cop enters combat range, all nearby cops in the group are alerted
- Cops fall back to targeting their most recent attacker when no wanted
target is in range
- 3D-aware despawn — cops no longer vanish when you climb a tower or dig a pit
- Configurable cop weapon pools — vanilla items or custom Gangland weapons
- Spawner placement system with intelligent fallback for areas without
placed spawners
- Cop count scales with wanted level via a configurable formula
CopDeathEvent fires for other listeners to react to fallen officers
6. ? Civilians
A new NPC class that shares the cop AI base — wander, flee, or fight. (Trade moved to dedicated Trader NPCs
— see next section.)
- Civilian types are defined in
civilians.yml with per-type entity,
health, wearables, item pool, weapon pool, drops, and AI profile
- Friendly civilians wander and flee from danger; attacking them
increments your wanted level
- Hostile civilians return fire using weapons from their pool
- Per-type drop chances — friendly and hostile civilians roll loot
with distinct probability buckets
- Combat difficulty profiles —
EASY / NORMAL / HARD / DEADLY — scale aim,
reaction time, and fire rate
- Groups bind spawn points to a type with population caps, activation
radius, and despawn radius — civilians appear when players walk in range
and disappear when the area empties
- Shared navigation tuning with cops via
NPC_Navigation in settings.yml
/glw civilian … commands for manual spawn, despawn, and group control
7. ? Trader NPCs & Shop API
Stationary, damageable Citizens NPCs that run full shops.
- Buy, barter, sell, and tip — four distinct transaction types per trader
- Six built-in personality traits (
easygoing, hotheaded, stubborn,
generous, shrewd, timid) with configurable mood gain rates, friend
discount, barter policy, and max HP — add your own in trader_traits.yml
- Per-player mood — positive-only scalar that raises on purchases and
tips; trader gives up to
Min_Friend_Discount off at full mood
- Pure-swap barter — no money changes hands on a barter; items are
valued against the trader's trait and the shop's category rates
- Killable traders —
Invulnerable: false lets players rob a shop
- Shop API — the UI, persistence, and transaction pipeline live in a
shared
gangland-ui/shop-api module for future shop surfaces
- In-game admin editing — spawn, edit shop key, edit trait, rename
via anvil GUI, remove — no YAML wrestling day-to-day
8. ? Jail & Detainment
The outcome of a successful arrest — with four ways out.
- Cops that successfully cuff a player initiate the detainment sequence
- Jailed players are held at a configured jail location with seized inventory
- ? Pay bail — charges a cost scaling with wanted level; returns seized items
- ? Bribe the cop — handcuff-stage bribe (pre-jail) always succeeds if funded; jail-stage bribe rolls against
a configured success chance with a fail-penalty sentence extension
- ? Break free — handcuffed players can tap-race their way out (25 taps in 40 ticks)
- ⏲️ Serve your time — automatic release after a wanted-level-scaled sentence
- Admins can handcuff, jail, and release players manually
- Players cuffed at logout are auto-routed to jail on rejoin
- Every release path funnels through a single
ReleasePipeline — seized inventory restoration is consistent
9. ? Gadgets — Cars & Jetpacks
A dedicated gadget module for drivable vehicles and deployable equipment.
- Cars — drivable vehicles defined in
cars.yml with per-vehicle max
speed, acceleration, and fuel capacity
- Every parked car is saved to the database (position, fuel, exhaust side)
and rehydrated on boot — curb-side parking survives restarts
- Wobble animation on idle cars, shift-safe interactions, and dedicated
refuel / defuel commands
- Jetpacks — off-hand-equipped flight gadget with ramped thrust, fuel-
per-tick gliding, particle exhaust, and sound effects
- Empty jetpacks trigger a timed refuel session instead of silently cutting
out mid-air
- Shared fuel component — cars and jetpacks use the same
FuelContract,
so refuel items and UX are consistent across gadgets
10. ? Loot Chests & Rewards
Randomized reward containers placed anywhere in the world.
- Admins designate any chest, barrel, or shulker box as a loot chest
- ⏳ A countdown timer ticks down before the chest becomes openable
- ? Item preview above the chest while it ticks down — no blind clicks
- Five rarity tiers: Common, Uncommon, Rare, Epic, and Legendary
- Higher tiers require a lockpick or key — which hovers above the chest
as a floating in-world item, resource-pack friendly
- Drop-chance buckets — per-item
COMMON / UNCOMMON / RARE / EPIC / LEGENDARY
decide how often each item rolls; tier gating controls which tables a chest
can draw from (not individual items)
- Loot tables contain weapons, ammo, unique items, money, and XP
- Three built-in loot tables: Street Loot, Military Loot, and Supply Cache
- Weapon drops land as real weapon items under a floating name hologram
- Rewards also include a configurable random money and XP amount
- Level gating — certain tiers require a minimum player level to access
11. ?️ Wearables
Custom armor pieces with specialized damage reduction.
- Wearables sit on top of vanilla armor and plug into Gangland's full damage pipeline
- Configurable base damage reduction percentage per piece
- Seven protective traits:
REINFORCED, BULLETPROOF, PADDED, TOUGHENED, FIRE_RESISTANT, REACTIVE, and
LIGHTWEIGHT
- Traits from multiple pieces stack for combined protection
- Durability depletes as damage is absorbed
- Four built-in pieces: Police Vest, Police Helmet, Gang Jacket, and Heavy Vest
- Fully configurable via
wearables.yml — add, modify, or remove pieces freely
12. ? Player Leveling
An XP-based progression system that gates access to higher rewards.
- Players earn XP through kills, looting, and gameplay
- Configurable XP formula — early levels are quick, later levels are a meaningful grind
- Maximum level of 100 by default
- Skill upgrade system: spend money to purchase upgrades with cost scaling per level
- Level requirements on loot chest tiers
13. ?️ Waypoints & Teleportation
Named teleport destinations placed by admins.
- Five waypoint types: Spawn, Gang, Safe Zone, Quest, and Global
- Configurable teleport cost, wait timer, and cooldown per waypoint
- ?️ Safe zones disable PvP for players inside them
- Gang waypoints are restricted to members of a specific gang
- Permission nodes auto-generated per waypoint for fine-grained access control
- Teleport cancels if the player moves or takes damage during the wait timer
- Chat output includes hover and click events to teleport directly
14. ? Trade Signs
In-world buy and sell signs for weapons and ammunition.
- Place signs that let players buy or sell weapons and ammo at fixed prices
- Two sign types: weapon signs and ammo signs
- Throwables bought from signs stack with looted ones via shared UUIDs
- No additional plugin is required — works entirely within Gangland Warfare
- Configurable item, price, and quantity per sign
15. ? Scoreboard
Live stat display for players.
- Animated titles with configurable scroll speed
- Displays money, level, wanted stars, gang name, and other live values
- Multiple scoreboard drivers supported
16. ? Unique Items
Special items with controlled inventory behavior.
- ? Phone — permanently in the last hotbar slot, given on join and respawn, cannot be dropped
- ? Lockpick — consumable required to unlock Rare loot chests
- ?️ Epic Key and Legendary Key — required for Epic and Legendary chest tiers
- Configurable auto-give on join, slot pinning, drop-on-death, and duplicate rules
17. ?️ Server Infrastructure
Backend features for operators and developers.
- MySQL and SQLite support via HikariCP — selected in
settings.yml
- Beans-based bootstrap — phased dependency-injection pipeline
(KERNEL → FILE → DATABASE → CONFIG → LIFECYCLE → LISTENER → COMMAND) with
auto-registered
@Bean, @ListenerHandler, and @CommandHandler classes
- YAML validation layer — every loader reports unknown keys with file +
line number, so stale settings never silently rot between releases
- Reload regeneration — missing config sections are rewritten on
/glw reload; a missing file is recreated from the jar with an init retry
- Debug logging block — per-module
DEBUG toggle in settings.yml,
no JVM flags required
- Vault permission integration — soft-dep; falls back to the built-in
permission system when Vault is absent
/glw permissions command for inspecting / granting / revoking permissions
in-game
/gangland alias for /glw
- Batched database queries to reduce individual query overhead
- Automatic periodic data saving and cache cleanup
- ? Multi-language message support with jar-bundled fallback
- Resource pack auto-loading on join
- Custom scoreboard via FastBoard
- ? Public developer API with events for weapons, cops, civilians, traders,
bounty, and more
? Upcoming Features
The following systems are actively in development:
- ? Safe Cracking Minigame and Advanced Chest Mechanics
- ⚔️ Gang Attacks and Turf Wars
- ? Challenges and Competitive Events
- ?️ More Vehicle Types (motorcycles, boats, aircraft)
- ? Purchasable Houses and Properties
- ? Player-to-Player Market / Auction House
- ? Quest and Mission System
? Requirements
| Requirement |
Details |
| Minecraft version |
1.20+ (tested; earlier versions are partially implemented) |
| Java |
Java 21 or newer |
| Server platform |
Spigot (Paper-only APIs are not used) |
| Required plugins |
NBTAPI, Citizens |
| Optional plugins |
PlaceholderAPI, Vault, ViaVersion |
? Installation
- ⬇️ Download the latest JAR from the releases section.
- ? Stop your Minecraft server.
- ? Place the JAR in your server's
plugins/ folder.
- ▶️ Start the server to generate configuration files.
- ⚙️ Configure the plugin under the
Gangland_Warfare/ folder.
- ? Use
/glw reload to apply configuration changes without restarting.
❤️ My Journey
Gangland Warfare is the culmination of 5 years of passionate development, countless hours of recoding, refactoring, and
relentless improvement. Originally known as Cubed-GTA, this plugin has been completely rewritten from the ground up with
a modular, multi-module architecture to deliver the ultimate GTA-style experience in Minecraft.
What started as a simple concept has evolved into a full-fledged urban warfare plugin through multiple development
cycles, periods of burnout, and continuous iteration. Every part of the codebase has been crafted to ensure stability,
performance, and an immersive gameplay experience.
Though the full game loop is still being fleshed out, this development build represents a major milestone. Community
feedback is appreciated — the comments section is the right place for it. ?
? Disclosures
? Automatic Update Checker
On startup, the plugin automatically contacts the SpigotMC API (api.spigotmc.org) every 6 hours to check whether a
newer version of the plugin is available. This is a read-only request — no player data or server data is sent. Operators
with the appropriate permission are notified in-game if an update is found.
? Automatic Resource Pack Push
If the resource pack feature is enabled in settings.yml, the plugin automatically sends a resource pack download
prompt to every player when they join the server. Players are directed to a URL configured by the server administrator.
Players may accept or decline the prompt; declining does not prevent them from playing unless the server admin has
enabled the kick-on-decline option.
? Support & Feedback
- ? Bug reports: open an issue on the GitHub repository
- ? Configuration changes take effect with
/glw reload or a server restart
- ? Full documentation is available in
the github page
⚠️ This plugin is actively under development. Bugs are expected. Please report them rather than leaving a low rating —
every report helps. Don't forget to leave a ⭐⭐⭐⭐⭐ rating if you enjoy it!
All commands use the /glw dispatcher (alias: /gangland).
评论 0
登录后参与评分
还没有评论,来抢沙发吧