LincerosAutoDoor-1.1.0.jar
What's new
AutoDoor - Changelog
Version 1.1.0 - Improvements and Fixes
β¨ New Features
Extended Commands
/autodoor status- Shows the current mod configuration/autodoor setrange <open> <close>- Sets the open and close ranges/autodoor direction <towards|away>- Sets the door opening directiontowards- Doors open towards the playeraway- Doors open away from the player (default)
/autodoor reload- Reloads the configuration from file
New Configuration
- OpenTowardsPlayer - Allows choosing if doors open towards or away from the player
false(default) - Doors open away from the playertrue- Doors open towards the player
π Bug Fixes
Memory Leak Fix
- β Implemented automatic player reference cleanup system every 10 seconds
- β Cleans invalid references when players disconnect
- β Cleans orphaned door states
- β Prevents indefinite data accumulation in memory
Corrected Closing Logic
- β
Now uses
CLOSE_DOOR_INwhen opened withOPEN_DOOR_IN - β
Now uses
CLOSE_DOOR_OUTwhen opened withOPEN_DOOR_OUT - β Maintains consistency between opening and closing states
Configuration Validation
- β
Validates that
OpenRange > 0 - β
Validates that
CloseRange > 0 - β
Validates that
CloseRange > OpenRange(prevents flickering) - β Auto-corrects invalid values when loading configuration
- β Shows warnings in logs when auto-corrected
π¨ UX Improvements
Colored Messages
- Commands now use colors (green for success, red for error, yellow for info)
- Clearer visual feedback for every action
Better Information
/autodoorcommand shows full help with all subcommands- More descriptive error messages
- Usage examples in commands requiring parameters
π§ Technical Improvements
Robust Validation
- Setters with range validation
- Descriptive exceptions for invalid values
validateAndFix()method that auto-corrects invalid configurations
Improved Logging
- Detailed log during setup showing configured opening direction
- Warnings when configuration is auto-corrected
- Configuration reload info
π Example Configuration
{
"OpenRange": 3.0,
"CloseRange": 5.0,
"Enabled": true,
"OpenTowardsPlayer": false
}
π― Recommended Usage
For doors that automatically open away (default):
/autodoor direction awayFor doors that open towards you (modern automatic style):
/autodoor direction towardsAdjust ranges to avoid unwanted activations:
/autodoor setrange 2.5 4.5
β‘ Performance
- Periodic cleanup system every 200 ticks (~10 seconds)
- Memory leak prevention
- Keeps valid references only
Version 1.0.0 - Initial Release
Initial Features
- Auto-opening doors when approaching
- Auto-closing doors when leaving
- Multi-player tracking per door
- Basic range configuration
- Commands
/autodoor enableand/autodoor disable
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects