**Version: 1.1.1**
**Release Type: Critical Bug Fix**
### Critical Fixes - Folia Scheduler Compatibility
This release fixes a critical crash on startup caused by incompatible scheduler API usage with Folia.
#### Fixed:
- **Folia Scheduler Compatibility** - Replaced legacy Bukkit scheduler with Folia async scheduler
- Previously, the plugin used `Bukkit.getScheduler().runTaskTimerAsynchronously()` which is unsupported in Folia (my mistake)
- Folia's regionalized threading model requires use of its own async scheduler API
- Error: `java.lang.UnsupportedOperationException` at `CraftScheduler.runTaskTimerAsynchronously`
- Fix: Replaced with `Bukkit.getAsyncScheduler().runAtFixedRate()` using proper time units
- Impact: Plugin now loads successfully on Folia servers without crashing
#### Technical Details:
- Changed update checker scheduling from tick-based to time-based (3600 seconds = 1 hour)
- Added `java.util.concurrent.TimeUnit` import for proper time unit handling
- Updated scheduler call at ProtectCordPlugin.java:90-97
- Maintains same hourly update check frequency
### Compatibility:
- Fully backward compatible with v1.1.0 configuration and data
- No configuration changes required
- No breaking changes
- Tested on Folia 1.21.8
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }