Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by DeathZonePT, May 13, 2015.
Hi, do you guys know any way to set the port of the server with a plugin?
Read the server.properties file in the root of the server.
i know how to work with the server.properties!!!
do you know or not?
No reason to change the port while the server already is running, so nope I don't think that anyone made a plugin for this.
thx for the reply and i have a reason for that thx anyway
Well by "no reason" I think he means "you can't"
As in, once mcserver is started it's bound to a port and you're not going to be able to change it... at least not without some very heavy hacking, and even then I doubt that's going to work out.
And I think wazoomie was suggesting you do that in code. Just read, modify and write the server.properties file if you want to. But you'll have to restart the server for the change to take effect.
Nope, you can't, because the server is already started