From ef2ab783077b407038fc5cf1174326176a475738 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 22 Oct 2021 20:09:06 +0200 Subject: [PATCH] Add potential StartUpTime decrease by lazy loading commands only on usage --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 5f0f9d2..e6926da 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -76,8 +76,6 @@ public abstract class SWCommand { } private synchronized void createMapping() { - Bukkit.getLogger().log(Level.INFO, () -> "Initializing: " + getClass().getTypeName()); - long time = System.currentTimeMillis(); Method[] methods = getClass().getDeclaredMethods(); for (Method method : methods) { addMapper(Mapper.class, method, i -> i == 0, false, TypeMapper.class, (anno, typeMapper) -> { @@ -134,7 +132,6 @@ public abstract class SWCommand { }); commandHelpList.sort(Comparator.comparingInt(o -> -o.subCommand.length)); } - Bukkit.getLogger().log(Level.INFO, () -> "Load time for " + getClass().getTypeName() + " was " + (System.currentTimeMillis() - time) + "ms"); initialized = true; }