mayor
🐘 turn villagers into powerful city builders
Building
Mayor was not built using Eclipse or any other IDE. Although you can use one, the instructions below are for building and running this plugin with only the command line and a few easy to understand tools.
Requirements
NOTE: Make sure the Java version on your server and the Java version on the machine that builds Mayor are the same, otherwise Bukkit/Spitgot will not allow it to run.
JARs
NOTE: These files are expected in a folder called external
that you should create within the repo after cloning. In addition, the spigot.jar
will be used to launch a server in an expected server
directory. Both these features are easy to understand and configure within the makefile.
Commands
make plugin
- cleans
build/
- compiles the
plugin/
directory
- builds a
.jar
- moves it into
server/plugins/
for use in the Spigot/Bukkit server
make server
Thanks
A lot of important work parsing and building structures from .schematic/NBT files was made possible by open source contributors on Bukkit and Spigot forums. In particular:
- https://github.com/Shynixn/StructureBlockLib
- https://www.spigotmc.org/threads/load-schematic-file-and-paste-at-custom-location.167277/
- https://bukkit.org/threads/pasting-loading-schematics.87129/
- https://www.spigotmc.org/threads/converting-item-id-and-damage-value-to-new-material-type.329614/
- https://bukkit.org/threads/so-block-setdata-is-deprecated-whats-the-new-way-to-change-the-data-of-an-existing-block.189076/
- https://www.spigotmc.org/threads/tutorial-example-handle-structures.331243/
- https://bukkit.org/threads/class-custom-vilagers-trade-items.338739/
- https://bukkit.org/threads/entity-name-tag.142085/
- https://dev.bukkit.org/projects/villager-trade-api
- https://bukkit.org/threads/how-to-tell-if-user-clicks-top-or-bottom-inventory.112822/
- https://www.spigotmc.org/threads/inventoryclickevent-get-villager-trade.284605/
- https://stackoverflow.com/questions/2258891/how-to-access-the-private-variables-of-a-class-in-its-subclass
Authors
(c) 2019 Julian Weiss. insanj.com
License
See LICENSE. (c) 2019 Julian Weiss.