DomainEnforcer is a Minecraft server plugin designed to enforce strict domain name usage for player connections. It ensures that players connect using specified domain names rather than direct IP addresses, enhancing server security and user experience.
MIT License
DomainEnforcer is an open-source Minecraft plugin designed to enforce domain-based connections to your Minecraft server. Ensure your players connect using only approved domains and receive friendly reminders if they attempt to join using an IP address or an unapproved domain.
/domainenforcer reload
- Reload the configuration./domainenforcer start
- Start the DomainEnforcer plugin./domainenforcer stop
- Stop the DomainEnforcer plugin./domainenforcer help
- Display help information./domainenforcer reload
command./domainenforcer start
command./domainenforcer stop
command./domainenforcer help
command.Edit the config.yml
file to set up your required domains and custom messages:
# List of required domains players should use to connect add more domains as needed
required-domains:
- yourdomain.com
- anotherdomain.com
# Message to display when a player connects using an IP address
ip-warning-message:
- "---------------------------------------------"
- "&cYou have connected using an IP address."
- "&ePlease use one of the following domains to connect:"
- "&a- yourdomain.com"
- "&a- anotherdomain.com"
- "---------------------------------------------"
# Message to display when a player connects using an invalid domain
invalid-domain-message:
- "---------------------------------------------"
- "&cYou have connected using an invalid domain."
- "&ePlease use one of the following domains to connect:"
- "&a- yourdomain.com"
- "&a- anotherdomain.com"
- "---------------------------------------------"
plugins
directory.config.yml
file to set your desired domains and messages.To build DomainEnforcer from source, follow these steps:
Clone the repository:
git clone https://github.com/your-repository/domainenforcer.git
cd domainenforcer
Build the project using Maven:
mvn clean package
The compiled jar file will be located in the target
directory.
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Make sure to follow the project's coding standards and include appropriate tests for your new features or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
For support, feature requests, or to report bugs, please visit our GitHub Issues page.
DomainEnforcer is the perfect solution for server administrators who want to ensure that players connect using specified domains, providing a professional and controlled environment for your Minecraft community. Download now and take control of your server connections!