ByteLib Documentation 1.1 Help

ByteLib Loader

The ByteLib loader is responsible for loading ByteLib's dependencies for plugins using it to operate. You should've configured your plugin to use it in the previous topic.

Currently, the loader is not configurable, but it is also not mandatory to use it. The loader is defined as follows:

@SuppressWarnings("UnstableApiUsage") public class BytePluginLoader implements PluginLoader { @Override public void classloader(PluginClasspathBuilder classpathBuilder) { MavenLibraryResolver resolver = new MavenLibraryResolver(); resolver.addDependency(new Dependency(new DefaultArtifact("dev.dejvokep:boosted-yaml:1.3.7"), null)); resolver.addDependency(new Dependency(new DefaultArtifact("com.google.inject:guice:7.0.0"), null)); classpathBuilder.addLibrary(resolver); } }

If you need or want to use your own loader, as long as it includes those two dependencies, then you do not have to use the included one. The loader is only called by Paper, ByteLib does not do anything with it itself.

10 March 2026