lishid / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
120 stars 97 forks source link

Unable to compile packages #121

Closed SuixideBunneh closed 4 years ago

SuixideBunneh commented 4 years ago

Works fine for 1.18 but as soon as it reached 1.14, it says net.minecraft.server.v1_14_R1 does not exists. How do I import this using maven?

SuixideBunneh commented 4 years ago

The reason I am doing this is to change the aliases for the silentchest command [sc] as it clashes with my other plugin and I would like this [sc] aliases to be removed. Thanks

Jikoo commented 4 years ago

Regarding compiling: you must have the correct versions of Spigot (not Spigot-API) installed in your local Maven repository to compile a particular NMS revision. BuildTools will automatically install for you when running, or you can manually install files using the process outlined in the readme.

To compile, the relevant Craftbukkit/Spigot jars must be installed in your local repository using the install plugin. Ex: mvn install:install-file -Dpackaging=jar -Dfile=spigot-1.8-R0.1-SNAPSHOT.jar -DgroupId=org.spigotmc -DartifactId=spigot -Dversion=1.8-R0.1-SNAPSHOT

Regarding your reason for compiling youself: you can use your commands.yml to enforce aliasing or you could edit the plugin.yml in the compiled jar to remove the alias.