Troubleshooting
This section covers common issues and solutions when setting up and running a Nukkit server.
Server Won't Start
Issue Description
The window flashes briefly or shows errors when double-clicking the startup script.
Possible Causes and Solutions
1. Java Not Installed or Version Too Old
Check Method:
java -version
Solution:
- Ensure Java 17 or higher is installed
- Refer to the Preparation section to reinstall Java
2. JAR Filename Mismatch
Check Method:
- Verify that the JAR filename in the startup script matches the actual filename
Solution:
- Modify the filename in the startup script, or rename the JAR file
3. Corrupted JAR File
Check Method:
- Check if the file size is abnormal (normally about 10-20 MB)
Solution:
- Re-download Nukkit-MOT
4. Insufficient Memory
Error Message:
Could not reserve enough space for object heap
Solution:
- Reduce memory allocation in startup script (e.g.,
-Xmx512M) - Close other memory-intensive programs
Players Cannot Connect
Local Connection Issues
Windows Loopback Restriction
Issue Description: Cannot connect to server on the same computer.
Solution: Run PowerShell as administrator and execute:
CheckNetIsolation LoopbackExempt -a -n="Microsoft.MinecraftUWP_8wekyb3d8bbwe"
Firewall Issues
Issue Description: LAN or public network players cannot connect.
Solution:
Windows Firewall:
- Open "Windows Defender Firewall"
- Click "Advanced settings"
- Create new inbound rule, allow UDP port 19132
Linux (ufw):
sudo ufw allow 19132/udp
Linux (iptables):
sudo iptables -A INPUT -p udp --dport 19132 -j ACCEPT
Port Already in Use
Error Message:
Address already in use
Solution:
- Check if another program is using port 19132
- Modify
server-portinserver.propertiesto a different port
NetEase Client Cannot Connect
Issue Description: Cannot connect using NetEase Minecraft client.
Solution:
Enable NetEase client support in server.properties:
netease-client-support=true
Plugin Issues
Plugin Failed to Load (Red)
Issue Description:
Plugin name appears in red when using the plugins command.
Possible Causes:
1. Version Incompatibility
- Plugin doesn't support current Nukkit version
Solution:
- Find a plugin that supports the current version
- Update Nukkit to the version required by the plugin
2. Missing Dependencies
- Plugin depends on other plugins
Solution:
- Check plugin documentation and install required dependency plugins
3. Configuration File Error
- Plugin configuration file has format errors
Solution:
- Check console error messages
- Delete configuration file and let the plugin regenerate it
- Fix configuration according to plugin documentation
Performance Issues
Server Lag
Possible Causes:
1. Insufficient Memory
Solution:
- Increase the
-Xmxvalue in startup script - Reduce the number of concurrent online players
2. Too Many Chunks Loading
Solution:
Reduce view distance in server.properties:
view-distance=6
3. Plugin Conflicts or Performance Issues
Solution:
- Disable plugins one by one to find the problematic plugin
- Update or replace poorly performing plugins
World/Data Issues
World Corruption
Issue Description: Server cannot load world or shows errors.
Solution:
- Stop the server
- Backup the
worldsfolder - Try deleting lock files in
worlds/world/db - If unable to fix, restore from backup
Data Loss
Prevention Measures:
- Regularly backup the
worldsfolder - Properly shut down the server (use
stopcommand instead of force closing)
Other Issues
Console Garbled Text
Windows Users: Add to the beginning of startup script:
chcp 65001
Cannot Execute Commands
Issue Description: Commands entered in console don't respond.
Solution:
- Check if there are many error messages flooding the console
- Try restarting the server
- Check if the issue is caused by a plugin
Getting Help
If the above solutions don't solve your problem:
- Check complete server logs (
logsfolder) - Search for the error message
- Ask questions in GitHub Issues
- Join community discussion groups for help
- Server version
- Java version
- Operating system
- Complete error logs
- Steps to reproduce the issue