Editing Server Properties With a Plugin?

Discussion in 'Plugin Development' started by Mortal_Wombat, Aug 4, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Hey guys i was wondering if there was a way on like a comman. I could enable command blocks!

    This server i am staff on has an issue where whenever it crashes/turns off command blocks get disabled :/ and it's a pain to go into the console when only 2 staff members have it lol. Owner and Lead Developer! So when they arent on half of our server is at a stand still :(.

    So how would i do it like


    and BAM it edits the server properties file AND we can reload and YAY command blocks again!

    Any help is appreciated! <3 Lots of love

    And thanks in advance!
  2. Offline


    Mortal_Wombat even if you edit the server.properties, you would need to restart for it to take effect. To get this runtime, you need to get the PropertyManager from the MinecraftServer and call setProperty to enable them
Thread Status:
Not open for further replies.

Share This Page