Brendan-Kirtlan / Minecraft-file-encoder

Plugin to encode files into a minecraft map
92 stars 6 forks source link

Problem with building the java file #3

Open sallyoneee opened 9 months ago

sallyoneee commented 9 months ago

Hi, I'm having a problem with building the java file. I followed the instructions and put the yml file in the right folder, but when I run the command in the game, nothing happens. It's like the plugin doesn't exist, but when I use yours, it totally works(even without yml file). Do you have any idea what I'm doing wrong or how to fix it? Thanks in advance.

mkunz7 commented 7 months ago

I was able to compile the java file using:

javac -cp .\spigot-api-1.20.4-R0.1-20240320.093700-100.jar .\File_encode.java

from https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.20.4-R0.1-SNAPSHOT/

then I just replaced the class file in the jar with the new one

7-zip extract, replace class file, rebuild jar

cd .\file_encode-1.0-SNAPSHOT\
jar cf ..\file_encode.jar *