[Plugin] Super Simple Server Shutdown Via XML

    We've posted an important announcement regarding the current situation and the future of the game: Announcement

    • [Plugin] Super Simple Server Shutdown Via XML

      Hi all, thought I would share this, it's a super-simple-super-lightweight (9KB) plugin that will shutdown your server at any given time - as configured by an even simpler XML file.

      The plugin will give all online players 1 minute notice via a waning message, accompanied by audio alert.

      Complete XML syntax for setting.xml is as follows. So you just need to edit the two integers to specify your time. Can't be simpler right?

      XML Source Code

      1. <?xml version="1.0" encoding="UTF-8"?>
      2. <settings>
      3. <event>
      4. <hour>18</hour>
      5. <minute>0</minute>
      6. </event>
      7. </settings>

      You will then need to use Task Scheduler (or your Linux equivalent) to start the server back up approx 2 minutes after the scheduled shutdown time (The actual shutdown event starts 1 minute after the scheduled time).

      Unfortunately startups can't be done with plugins as the JVM they are running in are killed during the process of the shutdown.

      Source code and walk-through is also available on Medieval Realms website (almost all up and hopefully making sense).
      • Shutdown.zip

        (4.53 kB, downloaded 34 times, last: )
      play: server.medievalrealms.co.uk website: medievalrealms.co.uk discord: discord.medievalrealms.co.uk