-
Notifications
You must be signed in to change notification settings - Fork 18
Testing
Plugin hooks are generally not tested - I only test hooks which I have an environment set up for, and since I haven't actively played Minecraft in years that list is very short. As a result, while I do my best to ensure that I have a solid understanding of the protection plugin, mistakes happen.
Testing a hook is pretty easy assuming you have the protection plugin installed.
- Install Regionerator.
- Start server.
- Check startup logs to ensure that there are no errors. Regionerator tests provided hooks on load to ensure that they work.
- Run
/regionerator check
in various locations to verify protection status. All chunks containing even part of a protection should report themselves protected.
Generally, I recommend that all users interested in running Regionerator run a cycle on a test copy of their server to ensure that they see the results they're expecting - it's far easier to delete a failed test server than it is to restore a backup to a live server.
- Prepare the server by testing the hook.
- Shut down the server.
- Open Regionerator's miscellaneous data store (
./plugins/Regionerator/data.yml
). - Change
next-cycle.<your_world_name_here>
to a low value greater than 0. - Start server.
If everything looks good, push to production! If you notice problems, open an issue and we'll try to work through it together.
Home - FAQ - Configuration - Commands
Getting Started
Developer Resources