Skip to content

Spigot Plugins

Protecting Spigot plugins requires you to know about: External Dependencies

  1. Create a folder with the Spigot.jar and every other dependency that is being used, but not included. If you shadow a dependency into your plugin, you do not need to include the JAR-file here.

    • Directorylibs or any other folder name
      • Spigot.jar
      • other dependencies
  2. Specify the Entrypoint. The entrypoint should be the Main class of your plugin:

    plugin.yml
    main: org.example.test.Main
  3. Build the plugin with the -libs <directory> flag

  4. Verify that the plugin loads completely

In case you don’t want your Main class to be the entrypoint, you can also choose any other class that is being loaded through the Main class eventually. However, you cannot load the Main class using jCloak.