ME1312 / SubServers-2

SubServers – The Minecraft Server Management Platform
Apache License 2.0
91 stars 23 forks source link

template.yml Executable: setting doesn't seem to do anything #53

Closed wysohn closed 4 years ago

wysohn commented 4 years ago

Platform Information

19:56:56 [INFO] CONSOLE executed command: /sub version 19:56:56 [INFO] SubServers > These are the platforms and versions that are running SubServers.Bungee: 19:56:56 [INFO] Linux 4.15.0-101-generic [x64], 19:56:56 [INFO] Java 1.8.0_252 [x64], 19:56:56 [INFO] BungeeCord git:BungeeCord-Bootstrap:1.15-SNAPSHOT:2f54c94:1500, 19:56:56 [INFO] SubServers.Bungee v2.15.2a (20w08d) 19:56:56 [INFO] 19:56:56 [INFO] You are on the latest version.

What Happened

About command /sub create

I have changed the template.yml file in the Templates/Paper/ folder, which contains the base files of Paper servers. As of default setting, it opens up a GUI, so I changed the setting

Template:
  Settings:
    Executable: 'java -Xmx1024M -jar Paper.jar'

to

Template:
  Settings:
    Executable: 'java -Xmx1024M -jar Paper.jar --nogui'

yet, this doesn't seem to be reflected in servers.yml, so I end up having to change it manually.

Is it intended behavior?

How It Happened

  1. Edit the template.yml as explained above
  2. /sub create to create a Paper server
  3. check if servers.yml is updated

Additional Information

Not as of now. Great plugin!

ME1312 commented 4 years ago

Changes like this take effect after a reload. Although, it has been brought to my attention that the non-specific /sub reload doesn't load template changes. So instead, you'll have to specify:

/sub reload templates

(Restarting also works, but is more annoying, I suppose)

wysohn commented 4 years ago

Yes, it worked!

Thank you