File Details
War 'N Taxes Mod - vers2.2.jar
- R
- Jun 29, 2025
- 303.23 KB
- 4.9K
- 1.20.1
- Forge
File Name
War 'N Taxes Mod - vers2.2.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
PvP Configuration Overhaul
- Centralized PvP Settings: All PvP-related settings have been moved into the main
minecolonytax.tomlconfig file under the["PvP Arena Settings"]section. This removes the separateminecolonytax-pvp.tomlfile and consolidates all server configurations into a single, easy-to-manage location. - Configurable Timers & Cooldowns: Added new configuration options for all PvP countdowns and cooldowns:
-
allowCommandsInBattle: Toggle whether players can use commands during a battle. -challengeCooldownSeconds: Set the cooldown for duel challenges. -teamBattleCooldownSeconds: Set the cooldown for starting team battles. -battleDurationSeconds: Define the default length of a battle before it's declared a draw. -teamBattleStartCountdownSeconds: Control the countdown before a team battle begins. -battleEndCountdownSeconds: Adjust the delay before players are teleported back after a battle. - Improved Countdown Notifications: The team battle start countdown is now less spammy. It notifies players at 10-second intervals until the last 5 seconds, at which point it notifies every second to build anticipation.
- NEW FEATURE - Team PvP System: Added comprehensive team-based PvP functionality with the new
/teampvpcommand: -/teampvp create <map>: Create a new team battle on a specified map -/teampvp join <battleId> <team>: Join a team battle (team 1 or 2) -/teampvp switch <battleId> <team>: Switch teams within a battle -/teampvp start <battleId>: Start a team battle early (organizer only) - Team battles support multiple players per team with automatic balancing - Interactive team rosters with real-time updates - Configurable team sizes based on map capacity - Automatic countdown system with configurable duration
Raid Guard Protection System
- NEW FEATURE: Added RaidGuardProtection system to protect smaller colonies from being overwhelmed by raids
- Configurable protection requirements: Target colonies must meet minimum defense requirements to be eligible for raids
- Guard protection: New
MinGuardsToBeRaidedconfig (default: 2) requires target colonies to have sufficient guards - Guard tower protection: New
MinGuardTowersToBeRaidedconfig (default: 1) requires target colonies to have sufficient guard towers - Master toggle: New
EnableRaidGuardProtectionconfig (default: true) to enable/disable the entire protection system - Enhanced raid command help:
/wnt help raidnow shows current protection requirements dynamically - Clear feedback: Raiders receive informative error messages when raids are blocked due to protection requirements
- Localized messages: Added translatable error messages for better international support
- Performance optimized: Efficient guard tower counting using building display name filtering
- Admin flexibility: Set either requirement to 0 to disable specific protection checks
Guard Tower Detection Bug Fix
- CRITICAL FIX: Fixed guard tower counting bug in RaidGuardProtection system
- Root cause resolved: Guard towers now properly detected using robust building type identification instead of unreliable display names
- Multiple detection methods: Implemented fallback detection using class names and building type patterns
- Backwards compatibility: Maintains support for existing display name detection while adding new robust methods
- Future proof: Will correctly identify new guard tower types and variations automatically
- Enhanced debugging: Added
/wnt debugguards [colony]admin command for troubleshooting guard/tower counting issues - Comprehensive diagnostics: Debug command shows guard counts, protection status, building analysis, and detection mismatches
- Improved reliability: Guard tower protection now functions correctly across all Minecolonies versions and configurations
Death Processing Fixes
- Fixed corpse spawning during wars: Death events now properly process natural death mechanics, allowing Corpse mod and other death-related mods to function correctly
- Fixed death messages and scoreboards: Deaths in war now trigger proper death messages and update death scoreboards as expected
- Improved inventory preservation: Last life inventory preservation now works through respawn events for more reliable inventory restoration
- Enhanced death debugging: Added extensive debug logging for war death processing to help diagnose future issues
Console Logging Control
- Added configurable tax generation logging: New
ShowTaxGenerationLogsconfig option to reduce console spam during initialization - Preserved error logging: Critical error messages still display regardless of logging setting
- Improved server administration: Cleaner server logs while maintaining debugging capabilities when needed
Vassalization Feature Enhancements
- Improved tribute display: Vassal tribute payments now correctly displayed in tax reports
- Enhanced
/wnt vasalscommand: Shows tribute percentage, last payment amount, and vassal status - Dynamic currency display: Shows "$" if SDMShop is enabled and proper item name (e.g., "emerald") when using custom currency
- Vassal status information: Command now displays if the player is a vassal, including overlord name and tribute rate
- Tribute payment tracking: Added system to track and display the last tribute amount paid by vassal colonies
War System Improvements
- Added team selection feature: Players who are members of both warring teams can now choose which side to join instead of being blocked from participating
- New commands:
/choosewarside attackerand/choosewarside defenderfor selecting a team when dual membership is detected - Improved war participation: Players receive clickable prompts in chat to select their preferred side
Fixed
- Server Startup Performance: Drastically reduced log spam during server startup by condensing building detection messages into single summary per colony
- Guard Tower Boost Bug: Fixed guard tower tax boost being applied every tick instead of once per cooldown period (configurable, default 5 minutes)
- Improved Logging: Replaced individual building messages with comprehensive colony summaries showing processed buildings, tax generated, guard count, and max tax status
- Duplicate Raid Tax Announcements: Fixed issue where raid tax announcements were being displayed twice per interval. Messages are now sent only once to all relevant players without duplication, even if players are members of both colonies involved in the raid.
Guard Tower Tax Boost Implementation
- NEW FEATURE: Implemented the long-awaited guard tower tax boost system
- Automatic Application: Tax boost is now applied every tax interval when colonies have sufficient guard towers
- Configurable Requirements:
RequiredGuardTowersForBoostsetting determines how many guard towers are needed (default: 5) - Percentage-Based Boost:
GuardTowerTaxBoostPercentagesetting controls the boost amount (default: 50% increase) - Tax Report Integration: Guard tower boost information is now displayed in tax reports when applicable
- Removed Unnecessary Cooldown: Eliminated the
GuardTowerBoostCooldownMinutessetting as the boost now applies every tax interval as intended - Robust Detection: Uses multiple methods to detect guard towers (display name, class name, and toString analysis)
- Performance Optimized: Guard tower counting is integrated into the main tax generation cycle for efficiency
Death Processing Fixes
- Fixed corpse spawning during wars: Death events now properly process natural death mechanics, allowing Corpse mod and other death-related mods to function correctly
- Fixed death messages and scoreboards: Deaths in war now trigger proper death messages and update death scoreboards as expected
- Improved inventory preservation: Last life inventory preservation now works through respawn events for more reliable inventory restoration
- Enhanced death debugging: Added extensive debug logging for war death processing to help diagnose future issues
Console Logging Control
- Added configurable tax generation logging: New
ShowTaxGenerationLogsconfig option to reduce console spam during initialization - Preserved error logging: Critical error messages still display regardless of logging setting
- Improved server administration: Cleaner server logs while maintaining debugging capabilities when needed.