Add CSLPluginsLoader (#48)

* Add CSLPluginsLoader

* Remove plugin loader. Add some events.

* Use ServiceLoader to load plugins

* Remove PluginClassLoader.
This commit is contained in:
ZekerZhayard authored and Alexander Xia committed 2019-03-08 13:38:44 +08:00
1 parent 42c48c5c2e
commit cc3616a074
3 files changed
+48

No files matched your search

@@ -5,6 +5,7 @@ import java.util.HashMap;
import com.mojang.authlib.GameProfile;
import customskinloader.config.SkinSiteProfile;
import customskinloader.plugin.PluginLoader;
import customskinloader.profile.UserProfile;
public class ProfileLoader {
@@ -23,6 +24,7 @@ public class ProfileLoader {
for(IProfileLoader loader:DEFAULT_LOADERS){
loaders.put(loader.getName().toLowerCase(), loader);
}
loaders.putAll(PluginLoader.loadPlugins());
return loaders;
}