Server Port with plugin

Discussion in 'Spigot Plugin Development' started by DeathZonePT, May 13, 2015.

  1. Hi, do you guys know any way to set the port of the server with a plugin?
    #1 DeathZonePT, May 13, 2015
    Last edited: May 13, 2015
  2. Read the file in the root of the server.
  3. i know how to work with the!!!

    do you know or not?
  4. 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.
    • Agree Agree x 1
  5. thx for the reply and i have a reason for that thx anyway :)
  6. NathanWolf


    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 file if you want to. But you'll have to restart the server for the change to take effect.
    • Agree Agree x 1
  7. Nope, you can't, because the server is already started ;)