SteamWar/SpigotCore
Archiviert
13
0

Fix init order
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-08-03 21:30:52 +02:00
Ursprung 4fc7f9e1e9
Commit 5859264f6b

Datei anzeigen

@ -102,6 +102,11 @@ public class Core extends JavaPlugin{
@Override
public void onEnable() {
setSqlConfig();
errorHandler = new ErrorHandler();
if(VERSION > 15)
crashDetector = new CrashDetector();
SWCommandUtils.init((SWTypeMapperCreator<TypeMapper<Object>, CommandSender, Object>) (mapper, tabCompleter) -> new TypeMapper<Object>() {
@Override
public Object map(CommandSender commandSender, String[] previousArguments, String s) {
@ -115,11 +120,6 @@ public class Core extends JavaPlugin{
});
Bukkit.getScheduler().runTaskTimer(this, TabCompletionCache::invalidateOldEntries, 20, 20);
setSqlConfig();
errorHandler = new ErrorHandler();
if(VERSION > 15)
crashDetector = new CrashDetector();
Bukkit.getPluginManager().registerEvents(new PlayerJoinedEvent(), this);
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
Bukkit.getPluginManager().registerEvents(new WorldLoadEvent(), this);