vTarla 是一款专为 Minecraft 1.21 设计的高级高性能农场经济插件。在构建时充分考虑了服务器优化与高度自定义需求,它通过引入专用的农场货币、动态图形界面以及严格的反作弊措施,彻底革新了传统的农场体验。
功能特性
内置反作弊(宏操作与自动农场保护)
为防止自动点击器和宏操作用户破坏服务器经济,vTarla 提供了高度可配置的每秒作物数(CPS)限制器。该系统以毫秒为单位追踪方块破坏间隔。
- 动作取消: 如果玩家超过定义的限制,系统会自动阻止破坏作物。
- 智能警告: 发送带有内置冷却时间的可配置警告消息,以防止聊天刷屏。
- 自动化惩罚: 当玩家达到指定数量的连续违规后,执行预定义的控制台命令(例如踢出、封禁、监禁)。
下一代动态 GUI
与传统具有硬编码界面的插件不同,vTarla 采用动态 GUI 引擎。每个菜单(主菜单、市场、个人资料、倍率和排行榜)均由位于 menus/ 目录中的独立 YML 文件生成。服务器管理员拥有绝对控制权,可调整:
- 容器大小和标题。
- 物品材质、自定义模型数据和槽位。
- 显示名称和多行描述。
- 玻璃板填充图案和背景美学效果。
定时与基于权限的倍率
管理员可以配置自定义倍率层级(例如 1.5x、2.0x),以提升作物金币产出。
- 重启无忧时长: 倍率过期时间以毫秒计算并直接保存至数据库,确保在服务器重启或崩溃期间不会丢失任何时间。
- 权限检查: 可以使用自定义权限节点将倍率限制为特定排名或 VIP 群组。
动态市场与视觉折扣系统
内置商店允许玩家使用赚取的农场金币购买自定义奖励或执行命令。
- 实时折扣: 具备动态视觉折扣系统。当启用全局折扣百分比时,插件会自动更新市场界面,划掉原价(例如
1000),并在物品描述中显示重新计算后的折扣价。
- 命令执行: 任何购买的产品都可以执行无限数量的控制台命令,从而实现与箱子、排名或自定义物品的无缝集成。
异步 SQLite 数据库
性能优先通过异步数据管理系统实现。
- 所有数据加载、保存和排行榜计算均通过 SQLite 在单独的线程上处理。
- 无论玩家数量多少,都能确保主服务器线程零卡顿。
- 安全的数据处理防止了在标准
/reload 命令或意外服务器关闭期间发生数据丢失。
PlaceholderAPI 集成与排行榜
vTarla 完全集成了 PlaceholderAPI,允许服务器所有者在记分板、全息图或聊天格式中显示农场统计数据。该插件还提供了一个简洁、集中且基于 GUI 的前十名排行榜。
可用占位符:
%vtarla_coins% - 当前农场金币余额。
%vtarla_broken% - 玩家破坏的作物总数。
%vtarla_multiplier_tier% - 当前激活的倍率名称。
%vtarla_discount% - 当前激活的全局折扣百分比。
%vtarla_top_name_1% 至 10 - 财富前十玩家的名称。
%vtarla_top_coins_1% 至 10 - 财富前十玩家的金币余额。
vTarla is an advanced, high-performance farming economy plugin designed specifically for Minecraft 1.21. Built with server optimization and extensive customization in mind, it completely overhauls the traditional farming experience by introducing a dedicated farming currency, dynamic graphical interfaces, and strict anti-cheat measures.
Features
Built-in Anti-Cheat (Macro & Auto-Farm Protection)
To protect the server economy from auto-clickers and macro users, vTarla features a highly configurable Crops-Per-Second (CPS) limiter. The system tracks block-breaking intervals in milliseconds.
- Action Cancellation: Automatically prevents the breaking of crops if the player exceeds the defined limits.
- Smart Warnings: Issues configurable warning messages with built-in cooldowns to prevent chat spam.
- Automated Punishments: Executes predefined console commands (e.g., kick, ban, jail) after a player reaches a specified number of consecutive violations.
Next-Generation Dynamic GUIs
Unlike traditional plugins with hardcoded interfaces, vTarla utilizes a dynamic GUI engine. Every menu (Main Menu, Market, Profile, Multipliers, and Leaderboard) is generated via independent YML files located in the menus/ directory. Server administrators have absolute control over:
- Inventory sizes and titles.
- Item materials, custom model data, and slots.
- Display names and multi-line lores.
- Glass pane filler patterns and background aesthetics.
Timed & Permission-Based Multipliers
Administrators can configure custom multiplier tiers (e.g., 1.5x, 2.0x) to boost crop coin yields.
- Restart-Proof Durations: Multiplier expiration times are calculated in milliseconds and saved directly to the database, ensuring no time is lost during server restarts or crashes.
- Permission Checks: Multipliers can be restricted to specific ranks or VIP groups using custom permission nodes.
Dynamic Market & Visual Discount System
A built-in shop allows players to spend their earned farming coins on custom rewards or command executions.
- Live Discounts: Features a dynamic visual discount system. When a global discount percentage is active, the plugin automatically updates the market interface, striking through the original price (e.g.,
1000) and displaying the newly calculated discounted price in the item lore.
- Command Execution: Any purchased product can execute an unlimited number of console commands, allowing seamless integration with crates, ranks, or custom items.
Asynchronous SQLite Database
Performance is prioritized through an asynchronous data management system.
- All data loading, saving, and leaderboard calculations are processed on separate threads via SQLite.
- Ensures zero lag spikes on the main server thread, regardless of the player count.
- Safe data handling prevents data loss during standard
/reload commands or unexpected server shutdowns.
PlaceholderAPI Integration & Leaderboard
vTarla is fully integrated with PlaceholderAPI, allowing server owners to display farming statistics on scoreboards, holograms, or chat formats. The plugin also features a sleek, centralized, and GUI-based Top 10 Leaderboard.
Available Placeholders:
%vtarla_coins% - Current farming coin balance.
%vtarla_broken% - Total crops broken by the player.
%vtarla_multiplier_tier% - Name of the currently active multiplier.
%vtarla_discount% - Currently active global discount percentage.
%vtarla_top_name_1% to 10 - Names of the top 10 wealthiest players.
%vtarla_top_coins_1% to 10 - Coin balances of the top 10 wealthiest players.
评论 0
登录后参与评分
还没有评论,来抢沙发吧