diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java index 3c33705..87d77d5 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java @@ -131,4 +131,9 @@ class SWCommandUtils { } } + public static void addMapper(Class clazz, Function mapper) { + if (MAPPER_FUNCTIONS.containsKey(clazz)) return; + MAPPER_FUNCTIONS.put(clazz, mapper); + } + }