promotional bannermobile promotional banner

AutoDoors

I open the doors for you my friend!~

File Details

LincerosAutoDoor-1.1.0.jar

  • R
  • Jan 28, 2026
  • 20.56 KB
  • 2.7K
  • Early Access

File Name

LincerosAutoDoor-1.1.0.jar

Supported Versions

  • Early Access

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 direction
    • towards - Doors open towards the player
    • away - 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 player
    • true - 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_IN when opened with OPEN_DOOR_IN
  • โœ… Now uses CLOSE_DOOR_OUT when opened with OPEN_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

  • /autodoor command 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

  1. For doors that automatically open away (default):

    /autodoor direction away
    
  2. For doors that open towards you (modern automatic style):

    /autodoor direction towards
    
  3. Adjust 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 enable and /autodoor disable