Skip to content
Lachlan edited this page Jun 13, 2023 · 14 revisions

This page is complete and is valid as of Treasury v2.0.0.

Compiling the Plugin

We use Maven.

Build the project

This requires you to either use Maven via IntelliJ's own side-panel, or alternatively, using the command line with Treasury's source code.

Follow these steps:

  • On Treasury-Parent, simply run mvn clean install.
  • Wait until it has completed.

Done! So long there are no errors, you have compiled Treasury.

Copy compiled JARs to use on servers

Bukkit

This will instruct you on how to build the Treasury plugin JAR for the Bukkit platform.

This requires you to build the project first.

Follow these steps:

  • Go to the directory: platform/bukkit/plugin/target/
  • Copy the file that is named using the format treasury-bukkit-???something???.jar.
    • If there is a file that starts with original, ignore it.
    • Also ignore files ending with -source.
    • If you don't see the file you're looking for, try refresh your file explorer window, or try re-build Treasury.
  • Paste the file wherever you wish to use it, e.g. your server's /plugins/ folder.

Done! So long there are no errors, you've got a working JAR to use on a Bukkit server.