Allows players to set the location their compass points to in minecraft
- First, in the root directory of the project, add a folder called
lib - Then, in the
libfolder, addbukkit-shaded.jar. - Once
bukkit-shaded.jarhas been added, you can simply runmvn clean installto build the jar file. It will be located attarget/MagicCompass.jar.
This guide is only relevant to those who want to build this project! Here is how I get my bukkit-shaded.jar. There might be better ways, and do share if you do know a better way.
- Grab spigot's build tools
- Place the
BuildTools.jarin a directory of your choosing. - Make sure git and maven are available from the command line. Getting this working depends on what system you are using. It should be automatic with a unix system, as long as you have them installed. For windows, make sure the proper bin folders for maven and git are added to your PATH.
- If you are on a unix system, you should be able to just navigate to the directory where
BuildTools.jaris contained. On a windows system, you will need to navigate to the folder whereBuildTools.jaris located using the git shell. If you installed git with the right features enabled, you'll be able to navigate to the directory in explorer, right click in an empty space, and select 'Git Bash Here'. - Execute
java -jar BuildTools.jar. It will download everything needed. - You will find that there is now a
Bukkitfolder. Navigate to that folder using your command line/terminal. - Execute
mvn clean install. - You will find that there is now a
targetfolder. Navigate to that folder (you no longer need a command line/terminal at this point). - There will be two jar files. The only difference between the two files is that one ends with '-shaded' in the filename. Rename the shaded file to
bukkit-shaded.jar - Copy/move
bukkit-shaded.jarfrom{BuildTools.jar directory}/Bukkit/target/to{MagicCompass repository root}/lib/bukkit-shaded.jar - You are now ready to build! Continue the steps in the Building section of this document.