Aliases.load() takes to long -> Paper kills server #6179
Labels
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
The Aliases.load() in the Skript Plugin onEnable() takes to long and so Paper kills the server.
The Server is run in an docker environement with limited cpu and we also increased the Paper Watchdog time, but the Aliases.load takes 40 seconds. It's increased with the new aliases from 1.20.2.
Expected Behavior
The Aliases.load() should be called in an Background Task like:
Bukkit.getScheduler().runTask(plugin, () -> {
Aliases.load()
// rest from the onEnable function
});
Steps to Reproduce
Start a server with Skript on an machine with less CPU or in a docker environment with limited CPU.
Errors or Screenshots
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: