Skip to content

A Minecraft plugin to prevent rapid lever toggling, reducing lag and preventing exploits. Highly configurable and compatible with AntiRedstoneClock-Remastered.

License

Notifications You must be signed in to change notification settings

alex2276564/LeverLock

Repository files navigation

LeverLock 🔒

Minecraft Version Java Version GitHub Release License

LeverLock is a Minecraft plugin designed to prevent rapid lever interactions, which can potentially cause lag or be exploited for unintended game mechanics. It works as a complementary tool to AntiRedstoneClock-Remastered, providing comprehensive protection against redstone-based lag and exploits.

✨ Features

  • Prevents Rapid Lever Interactions: Implements a cooldown to prevent players from toggling levers too quickly.
  • Customizable Cooldown: Configure the cooldown duration to suit your server's needs.
  • Customizable Messages: Personalize the message players see when they trigger the cooldown.
  • Memory Efficient: Regularly cleans up stored data to minimize memory usage.
  • Reload Command: Easily reload the configuration without restarting the server.
  • Lightweight and Efficient: Minimal performance impact on your server.
  • Compatible with AntiRedstoneClock-Remastered: Enhances protection against redstone-based exploits and lag.
  • Auto-Update Check: On server start, the plugin checks for updates. If a new version is available, a notification is displayed in the console.

📥 Installation

  1. Download: Download the latest version of LeverLock from the Releases page.
  2. Install: Place the .jar file into your server's plugins folder.
  3. Optional - Enhanced Protection: Download and install AntiRedstoneClock-Remastered for comprehensive protection against redstone-related lag and exploits. Place the .jar file into your server's plugins folder.
  4. Restart: Restart your server to load the plugin(s).

🛠️ Configuration

Edit the config.yml file in the plugin's folder to customize settings:

# LeverLock Configuration

# Cooldown settings
cooldown:
  # Duration in seconds before a player can interact with a lever again
  duration: 1

# Message settings
message:
  # Message displayed when a player tries to interact with a lever too quickly
  cooldown: "§cYou are interacting with the lever too quickly!"

# Cleanup settings
cleanup:
  # Interval in seconds for cleaning up the cooldown data (5 minutes by default)
  interval: 300

📜 Commands

  • /leverlock reload - Reloads the plugin configuration (requires leverlock.reload permission)

🛠️ Compatibility

📦 Other Plugins

Also check out my other plugins for protecting your Minecraft server:

  • PermGuard
    PermGuard - a plugin to enhance server security. It temporarily revokes admin permissions when a player joins the server, to prevent unauthorized access or potential security breaches. Admins can only restore permissions manually via the console using commands like lp user playernick permission set *.

  • NoMoreTNTChainCrash
    NoMoreTNTChainCrash is a Minecraft plugin designed to prevent server crashes and lag caused by excessive TNT explosions. It achieves this by removing TNT before automated chain explosions can occur, while still allowing players to manually detonate TNT as desired.

🆘 Support

If you encounter any issues or have suggestions for improving the plugin, please create an issue in this repository.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👨‍💻 Author

[Alex] - [https://github.com/alex2276564]

We appreciate your contribution to the project! If you like this plugin, please give it a star on GitHub.

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

How to Contribute

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

Thank you for using LeverLock! We hope it makes your gaming experience more stable and enjoyable. 🎮🔥