Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Move the vanilla server into a subdirectory


Crey
 Share

Recommended Posts

Hello there!

 

I accidentally started minecraft_server.1.12.2.jar instead of my start.bat and as expected the whole world was corrupted.

There were no recent backups (i dont know if you guys plan on doing such a thing as long as mods for that exist) so everything is gone which is pretty sad :(

 

To make sure this does not happen again, is it already possible to move the vanilla server into a subdirectory?

Otherwise i would suggest that feature to prevent that from happening to anyone again :)

Link to comment
Share on other sites

  • LexManos unlocked this topic
  • 1 month later...
On 6/21/2020 at 8:41 PM, LexManos said:

We've talked about this before, it would break a crapload of server hosts and just cause more drama on their end.

 

Maybe look for a "minecraft_server.jar" and if it is in the root directory load it from there. If it isn't look in a subfolder

Java ❤️ | Owner of MaschinenMC.net | Development Administrator at Cafestu.be | Austria 😍

Link to comment
Share on other sites

4 hours ago, diesieben07 said:

Unfortunately that is not how the server jar is loaded.

Well I don't have the time to look into Forge's Code but could you tell me the basics and why it is required?

Edited by MenschenToaster | David

Java ❤️ | Owner of MaschinenMC.net | Development Administrator at Cafestu.be | Austria 😍

Link to comment
Share on other sites

4 hours ago, MenschenToaster | David said:

Well I don't have the time to look into Forge's Code but could you tell me the basics and why it is required?

Java has a concept called the "class path". This is a list of places where Java looks for code to load.

A jar file that you start can contain within it a fixed list (and that's the crucial part) of paths to look for more code. That is why the minecraft server jar must not be moved or renamed and it's name cannot be dynamically resolved. It must be known in advance and statically stored in the forge jar file.

Link to comment
Share on other sites

As I said, this has NOTHING to do with Forge's code or how we build the classpath.

We could technically put the jar whever the hell we want.

This is wholy issues with SERVER HOSTS and other users.

And the drama/bitching that will come from it.

This is just a case of... don't be dumb and run the vanilla server...

Unfortunately there isn't anything we can do to mark the world as not loadable by the vanilla jar.

As it's not code we control so there isn't any way to add protections into it.

Many Many external things can corrupt your world.

  • Like 2

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.