Spigot ShutDown 0.1

Prevent players with a Title and a CountDown when the server stop

  1. HardKill24 submitted a new resource:

    ShutDown - Prevent players with a Title and a CountDown when the server stop

    Read more about this resource...
     
  2. @HardKill24 This only shows the title to the player who ran the command o_OUse this code, as it works perfect and sends a title to all players, but also cancels the stop command
    Also with your code, anyone can STOP the server!

    Cela montre seulement le titre pour le joueur qui a couru la commande o_O utiliser ce code, car il fonctionne parfaitement et envoie un titre à tous les joueurs , mais aussi annule la commande d'arrêt
    Aussi avec votre code , toute personne peut arrêter le serveur!
    Code (Text):
    on command "/stop":
        permission: permission.stop
        permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
        trigger:
            cancel event
            message "&c&lRestarting this server!"
            loop all players:
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 30 seconds" for 2 seconds
                wait 20 seconds
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 10 seconds" for 2 seconds
                wait 5 seconds
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 5 seconds" for 1 second
                wait 1 second
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 3 seconds" for 1 second
                wait 1 second
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 2 seconds" for 1 second
                wait 1 second
                send loop-player title "&c&lRestarting server" with subtitle "&c&lin 1 second" for 1 second
                wait 1 second
                send loop-player title "&c&lRestarting server" with subtitle "&c&lNow" for 1 second
                wait 1 second
                execute console command "/stop"
     
    • Like Like x 1