Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change/read server properties

Comments in 'Plugin Development' started by iksaku, Mar 3, 2014.

  1. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    is there any code that allow me to change the values on "server.properties" file using a plugin? either to read them?

    Thanks :D
  2. jerlegoman
    Offline

    jerlegoman Active Member

    Joined:
    Dec 10, 2013
    Posts:
    120
    Minecraft User:
    jeremy647
    I don't think there is a way to do that with a command while the server is running because pocketmine uses the file all the time while the server is on.
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Well... I can change the server name while it's on, and it will be live changed xD
  4. Kripto
    Offline

    Kripto New Member

    Joined:
    Mar 2, 2014
    Posts:
    15
    Minecraft User:
    Kripto96
    I'm sure that you can change server name with:
    PHP:
    $this->server->name
    and related to server like type, ip, port...

    If you need to change pvp try:
    PHP:
    $this->pvp
    or for the spawn protection try:
    PHP:
    $this->spawn->protection
    My server is offline and I can't test this, sorry :/
  5. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Well... I will try this :D thanks :)

Share This Page

Advertisement