Spunky LagFix
SpunkyLagFix 是一款强大的插件,旨在通过最小化实体卡顿、清理世界和优化各种服务器进程来提升你的 Minecraft 服务器性能。如果你正遭受卡顿、过多生物或红石装置拖慢服务器的困扰,这款插件将是完美的解决方案。
功能概览
1. CustomAI 优化
- 优化生物行为以减少服务器负载
- 当附近没有玩家时禁用 AI
- 敌对生物(32 格)和被动生物(16 格)拥有不同的检测范围
- 显著降低因生物寻路产生的 CPU 占用
2. 物品清理器
- 自动清理地面上的掉落物
- 贵重物品(附魔/命名)会被存入“深渊”
- 可配置的清理间隔
- 清理前会有 30 秒的警告
- 玩家可以使用
/abyss 取回他们的物品
3. 实体限制器
- 限制每个区块的实体数量以防止卡顿
- 不同生物类型可配置的限制:
- 僵尸/骷髅:每区块最多 20 个
- 蜘蛛:每区块最多 15 个
- 动物(鸡/牛/羊/猪):每区块最多 10 个
- 自动移除超出限制的实体
4. 卡顿监控器
- 监控服务器 TPS(每秒刻数)
- 追踪内存使用情况
- 性能下降时自动采取行动
- 向管理员通知性能问题
5. 反红石
- 防止导致卡顿的红石装置
- 检测并禁用红石时钟
- 可配置的脉冲限制
- 帮助防止基于红石的卡顿机器
命令
主命令: /spunkylagfix (别名: /slf, /slagfix)
子命令:
/spunkylagfix reload - 重新加载插件配置
/spunkylagfix status - 显示服务器性能统计信息
/spunkylagfix clean - 手动触发物品清理
/spunkylagfix optimize - 运行所有优化功能
/spunkylagfix killmobs - 清除世界中所有的生物
/spunkylagfix clearentity - 清理实体(矿车、船只、物品等)
/spunkylagfix toggle-ai - 切换 CustomAI 功能
/spunkylagfix toggle-cleaner - 切换 ItemsCleaner
/spunkylagfix toggle-limiter - 切换 EntityLimiter
/spunkylagfix toggle-redstone - 切换 AntiRedstone
深渊命令: /abyss
- 取回被清理的贵重物品
- 物品被安全存储而非直接删除
- 默认情况下所有玩家均可访问
权限
spunkylagfix.admin - 访问所有插件命令
spunkylagfix.abyss - 访问深渊命令
spunkylagfix.notify - 接收插件通知
配置
所有功能均可在 config.yml 中进行配置:
items-cleaner:
enabled: true
interval: 5 # 清理之间的分钟数
warning-time: 30 # 秒
entity-limiter:
enabled: true
limits:
ZOMBIE: 20
SKELETON: 20
# 等等...
custom-ai:
enabled: true
check-radius: 16
anti-redstone:
enabled: true
max-pulses: 100
reset-ticks: 100
lag-monitor:
enabled: true
tps-threshold: 18.0
memory-threshold: 80
特殊功能
1. 欢迎消息
- 玩家加入时显示
- 包含可点击的 YouTube 频道链接
- 管理员和普通玩家有不同的消息
2. 性能监控
3. 安全模式操作
- 所有功能均可单独切换
- 可配置的阈值和限制
- 贵重物品的备份系统
结语
SpunkyLagFix 是针对服务器卡顿的综合解决方案,结合了多种优化技术,同时保持用户友好且完全可配置。凭借其强大的命令和自动化功能,你可以让服务器平稳运行,无卡顿!
Spunky LagFix
SpunkyLagFix is a powerful plugin designed to enhance your Minecraft server's performance by minimizing entity lag, cleaning up the world, and optimizing various server processes. If you're struggling with lag, excessive mobs, or redstone contraptions slowing down your server, this plugin is the perfect solution.
Feature Overview
1. CustomAI Optimization
- Optimizes mob behavior to reduce server load
- Disables AI when no players are nearby
- Different ranges for hostile (32 blocks) and passive mobs (16 blocks)
- Significantly reduces CPU usage from mob pathfinding
2. Items Cleaner
- Automatically cleans dropped items from the ground
- Valuable items (enchanted/named) are stored in the "abyss"
- Configurable cleanup intervals
- 30-second warning before cleanup
- Players can retrieve their items using
/abyss
3. Entity Limiter
- Limits entities per chunk to prevent lag
- Configurable limits for different mob types:
- Zombies/Skeletons: 20 per chunk
- Spiders: 15 per chunk
- Animals (Chicken/Cow/Sheep/Pig): 10 per chunk
- Automatically removes excess entities
4. Lag Monitor
- Monitors server TPS (Ticks Per Second)
- Tracks memory usage
- Automatically takes action when performance drops
- Notifies admins of performance issues
5. Anti-Redstone
- Prevents laggy redstone contraptions
- Detects and disables redstone clocks
- Configurable pulse limits
- Helps prevent redstone-based lag machines
Commands
Main Command: /spunkylagfix (aliases: /slf, /slagfix)
Subcommands:
/spunkylagfix reload - Reloads plugin configuration
/spunkylagfix status - Shows server performance stats
/spunkylagfix clean - Manually triggers item cleanup
/spunkylagfix optimize - Runs all optimization features
/spunkylagfix killmobs - Removes all mobs from the world
/spunkylagfix clearentity - Cleans up entities (minecarts, boats, items, etc.)
/spunkylagfix toggle-ai - Toggles CustomAI feature
/spunkylagfix toggle-cleaner - Toggles ItemsCleaner
/spunkylagfix toggle-limiter - Toggles EntityLimiter
/spunkylagfix toggle-redstone - Toggles AntiRedstone
Abyss Command: /abyss
- Retrieves valuable items that were cleaned up
- Items are stored safely instead of being deleted
- Accessible to all players by default
Permissions
spunkylagfix.admin - Access to all plugin commands
spunkylagfix.abyss - Access to the abyss command
spunkylagfix.notify - Receives plugin notifications
Configuration
All features are configurable in config.yml:
items-cleaner:
enabled: true
interval: 5 # Minutes between cleanups
warning-time: 30 # Seconds
entity-limiter:
enabled: true
limits:
ZOMBIE: 20
SKELETON: 20
# etc...
custom-ai:
enabled: true
check-radius: 16
anti-redstone:
enabled: true
max-pulses: 100
reset-ticks: 100
lag-monitor:
enabled: true
tps-threshold: 18.0
memory-threshold: 80
Special Features
1. Welcome Message
- Shows when players join
- Includes clickable YouTube channel link
- Different messages for operators and regular players
2. Performance Monitoring
- Real-time TPS monitoring
- Memory usage tracking
- Automatic optimization when needed
3. Safe Mode Operations
- All features can be toggled individually
- Configurable thresholds and limits
- Backup systems for valuable items
Conclusion
SpunkyLagFix is a comprehensive solution for server lag, combining multiple optimization techniques while remaining user-friendly and fully configurable. With its powerful commands and automated features, you can keep your server running smoothly and lag-free!
评论 0
登录后参与评分
还没有评论,来抢沙发吧