# 🎉 Custom Commands v1.1.2 - Folia Bugfix
## 🐛 Bug Fix: Folia Command Execution
Fixed a critical bug that prevented commands from executing on Folia servers!
### 🔧 What Was Fixed
**Folia Command Execution Error**
- **Error**: `NoSuchMethodException: io.papermc.paper.threadedregions.scheduler.GlobalRegionScheduler.getScheduler()`
- **Issue**: Commands failed to execute on Folia servers due to incorrect API usage
- **Fix**: Updated to use the correct Folia API: `GlobalRegionScheduler.get(plugin).run(Runnable)`
- **Impact**: This bug **only affected Folia servers** - Paper servers were not affected
### ✅ What This Means
- ✅ Commands now execute correctly on Folia servers
- ✅ No changes needed to your configuration
- ✅ All existing features work as expected
- ✅ Improved error handling for better debugging
### 📦 Installation
Simply update to v1.1.2 - your configs work exactly as before!
---
**Full Changelog:**
- Fixed `NoSuchMethodException` when executing commands on Folia servers
- Updated Folia API usage to `GlobalRegionScheduler.get(plugin).run(Runnable)`
- Improved error messages for better debugging
- This fix only affects Folia servers - Paper/Spigot servers were not impacted
**Need help?** Join our Discord: [https://discord.gg/ypa7Gvn433](https://discord.gg/ypa7Gvn433)
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" }