⏳ ShutDown [Spigot & BungeeCord] icon

⏳ ShutDown [Spigot & BungeeCord] -----

The smartest way to stop your server



[​IMG]
[​IMG]

ShutDown is a lightweight and powerful plugin which was mainly designed to
help your Users preparing themselves for the server stop.


[​IMG]

server.shutdown

[​IMG]

/shutdown:
This Command starts an 10 second timer after which the Server is being
stopped

/shutdown [>=10]:
This Command is similar to the first one but it takes one Argument which defines the time in seconds in which the the server will be stopped.
E.g. /shutdown 60 will stop the server after 60 seconds

/shutdown now:
This Command is just like /stop but the users will receive your defined kickmessage

/shutdown help:
Displays the plugin help page

/shutdown reload:
Reloads the config.yml and the messages.yml

/shutdown version:
Shows you the current version and checks for Updates

/shutdown terminate:
Cancels a ongoing ShutDown

[​IMG]

Code (YAML):

settings
:
  permission
: server.shutdown
  updateChecker
: true
  default_timer
: 10
  debug
: false
  auto_shutdown
: false
  auto_shutdown_time
: 00:00
  last_auto_shutdown
: MM-dd-yyyy
  metrics
: true
 

[​IMG]
Code (YAML):

console
:
  prefix
: '&7 [&cShutDown&7 ] '
chat
:
  prefix
: '&7 [&bServer&7 ] '
  broadcastmsg
: '&bServer ShutDown in : &c%s%'
  premessage
: '&bThe Server is stopping in&c %s% &bseconds!'
  kickmsg
: "&bYOURSERVER.COM \n &cYOU GOT KICKED FROM THE SERVER! \n &bREASON: &cSERVER\
    \ STOP!"

  stoppingin
: Server is stopping in %s% seconds
  stoppingnow
: Server is stopping now
  configreloaded
: The config was reloaded
  numbererror
: The first argument has to be a number
  terminating
: Terminating ShutDown
  canceled
: '&aThe ShutDown was canceled!'
  version
: 'The current version : %ver% Checking for Update: %check%'
  version-cooldown
: ยงc/version has a built in cooldown to prevent SpigotMC from rate
    limiting
command
:
  noperm
: '&cYou have no permission to perform this Command!'
 
[​IMG]

The API is currently just one event (ServerShutDownEvent)

How to use:
- add ShutDown to your plugins dependencies
Spigot:
plugin.yml
Code (YAML):

name
: YourPluginName
author
: YourName
version
: 1.0-SNAPSHOT
depend
: [ShutDown ]
 
Listener Class
Code (Java):
import de.flubio.shutdown.spigot.api.ServerShutDownEvent ;
import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;

public class ExampleListener implements Listener {
 
    @EventHandler
    public void onShutDown (ServerShutDownEvent event ) {
        /*
        * YOUR CODE
        * */

    }
 
}
BungeeCord:
plugin.yml
Code (YAML):

name
: YourPluginName
author
: YourName
version
: 1.0-SNAPSHOT
depends
: [ShutDown ]
 
Listener Class
Code (Java):
import de.flubio.shutdown.bungee.api.ServerShutDownEvent ;
import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;

public class ExampleListener implements Listener {
 
    @EventHandler
    public void onShutDown (ServerShutDownEvent event ) {
        /*
        * YOUR CODE
        * */

    }
 
}
INFO

This Plugin sends usage-information such as Players, ServerType(Spigot, BungeeCord), JavaVersion, etc. to the Creator of this Plugin to determine the general use of it, in order to decide if it is still worth to continue the work on it.
You consent to this by downloading​
Resource Information
Author:
----------
Total Downloads: 3,452
First Release: Mar 21, 2019
Last Update: Apr 6, 2022
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings