Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- logo: &bSkMaintenance &8» # Logo
- logo2: &bSkMaintenance # Logo2
- kick: &cConnection perdu &7» &bLa Maintenance à été activé! # Message au moment du kick
- perm: sk.mainenance
- permjoin: sk.maintenance.join
- permmsg: &cTu n'a pas la permission!
- variables:
- {maintenance} = false
- {status.maintenance} = false
- command /maintenance [<text>]:
- aliases: /m
- permission: {@perm}
- permission message: {@permmsg}
- trigger:
- if arg 1 is not set:
- open chest with 5 rows named "&3Maintenance" to player
- wait 1 ticks
- format slot 0 of player with light gray stained glass named "" to close
- format slot 1 of player with light gray stained glass named "" to close
- format slot 2 of player with light gray stained glass named "" to close
- format slot 3 of player with light gray stained glass named "" to close
- format slot 4 of player with light gray stained glass named "" to close
- format slot 5 of player with light gray stained glass named "" to close
- format slot 6 of player with light gray stained glass named "" to close
- format slot 7 of player with light gray stained glass named "" to close
- format slot 8 of player with light gray stained glass named "" to close
- format slot 9 of player with light gray stained glass named "" to close
- format slot 10 of player with light gray stained glass named "" to close
- format slot 11 of player with light gray stained glass named "" to close
- format slot 12 of player with light gray stained glass named "" to close
- format slot 13 of player with light gray stained glass named "" to close
- format slot 14 of player with light gray stained glass named "" to close
- format slot 15 of player with light gray stained glass named "" to close
- format slot 16 of player with light gray stained glass named "" to close
- format slot 17 of player with light gray stained glass named "" to close
- format slot 18 of player with light gray stained glass named "" to close
- format slot 19 of player with diamond named "&aReload" to close then run [make player execute command "/maintenance reload"]
- format slot 20 of player with light gray stained glass named "" to close
- format slot 21 of player with light gray stained glass named "" to close
- if {maintenance} is false:
- format slot 22 of player with red wool named "&3Maintenance" with lore "||&3Status: &cDésactivé||&7||&3Clique pour &aActivé &3la Maintenance." to close then run [make player execute command "/maintenance on"]
- if {maintenance} is true:
- format slot 22 of player with green wool named "&3Maintenance" with lore "||&3Status: &aActivé||&7||&3Clique pour &cDésactivé &3la Maintenance." to close then run [make player execute command "/maintenance off"]
- format slot 23 of player with light gray stained glass named "" to close
- format slot 24 of player with light gray stained glass named "" to close
- format slot 25 of player with emerald named "&bInformation" with lore "||&7» &bAuteur: &fMarioGaming877 ||&7» &bVersion: &fV1" to be unstealable
- format slot 26 of player with light gray stained glass named "" to close
- format slot 27 of player with light gray stained glass named "" to close
- format slot 28 of player with light gray stained glass named "" to close
- format slot 29 of player with light gray stained glass named "" to close
- format slot 30 of player with light gray stained glass named "" to close
- format slot 31 of player with light gray stained glass named "" to close
- format slot 32 of player with light gray stained glass named "" to close
- format slot 33 of player with light gray stained glass named "" to close
- format slot 34 of player with light gray stained glass named "" to close
- format slot 35 of player with light gray stained glass named "" to close
- format slot 36 of player with light gray stained glass named "" to close
- format slot 37 of player with light gray stained glass named "" to close
- format slot 38 of player with light gray stained glass named "" to close
- format slot 39 of player with light gray stained glass named "" to close
- format slot 40 of player with light gray stained glass named "" to close
- format slot 41 of player with light gray stained glass named "" to close
- format slot 42 of player with light gray stained glass named "" to close
- format slot 43 of player with light gray stained glass named "" to close
- format slot 44 of player with light gray stained glass named "" to close
- if arg 1 is not "info" or "rl" or "reload" or "on" or "off" or "status" or "setspawn":
- open chest with 5 rows named "&3Maintenance" to player
- wait 1 ticks
- format slot 0 of player with light gray stained glass named "" to close
- format slot 1 of player with light gray stained glass named "" to close
- format slot 2 of player with light gray stained glass named "" to close
- format slot 3 of player with light gray stained glass named "" to close
- format slot 4 of player with light gray stained glass named "" to close
- format slot 5 of player with light gray stained glass named "" to close
- format slot 6 of player with light gray stained glass named "" to close
- format slot 7 of player with light gray stained glass named "" to close
- format slot 8 of player with light gray stained glass named "" to close
- format slot 9 of player with light gray stained glass named "" to close
- format slot 10 of player with light gray stained glass named "" to close
- format slot 11 of player with light gray stained glass named "" to close
- format slot 12 of player with light gray stained glass named "" to close
- format slot 13 of player with light gray stained glass named "" to close
- format slot 14 of player with light gray stained glass named "" to close
- format slot 15 of player with light gray stained glass named "" to close
- format slot 16 of player with light gray stained glass named "" to close
- format slot 17 of player with light gray stained glass named "" to close
- format slot 18 of player with light gray stained glass named "" to close
- format slot 19 of player with diamond named "&aReload" to close then run [make player execute command "/maintenance reload"]
- format slot 20 of player with light gray stained glass named "" to close
- format slot 21 of player with light gray stained glass named "" to close
- if {maintenance} is false:
- format slot 22 of player with red wool named "&3Maintenance" with lore "||&3Status: &cDésactivé||&7||&3Clique pour &aActivé &3la Maintenance." to close then run [make player execute command "/maintenance on"]
- if {maintenance} is true:
- format slot 22 of player with green wool named "&3Maintenance" with lore "||&3Status: &aActivé||&7||&3Clique pour &cDésactivé &3la Maintenance." to close then run [make player execute command "/maintenance off"]
- format slot 23 of player with light gray stained glass named "" to close
- format slot 24 of player with light gray stained glass named "" to close
- format slot 25 of player with emerald named "&bInformation" with lore "||&7» &bAuteur: &fNitriZ_Dev ||&7» &bVersion: &f3.1" to be unstealable
- format slot 26 of player with light gray stained glass named "" to close
- format slot 27 of player with light gray stained glass named "" to close
- format slot 28 of player with light gray stained glass named "" to close
- format slot 29 of player with light gray stained glass named "" to close
- format slot 30 of player with light gray stained glass named "" to close
- format slot 31 of player with light gray stained glass named "" to close
- format slot 32 of player with light gray stained glass named "" to close
- format slot 33 of player with light gray stained glass named "" to close
- format slot 34 of player with light gray stained glass named "" to close
- format slot 35 of player with light gray stained glass named "" to close
- format slot 36 of player with light gray stained glass named "" to close
- format slot 37 of player with light gray stained glass named "" to close
- format slot 38 of player with light gray stained glass named "" to close
- format slot 39 of player with light gray stained glass named "" to close
- format slot 40 of player with light gray stained glass named "" to close
- format slot 41 of player with light gray stained glass named "" to close
- format slot 42 of player with light gray stained glass named "" to close
- format slot 43 of player with light gray stained glass named "" to close
- format slot 44 of player with light gray stained glass named "" to close
- if arg 1 is "info":
- send "&7-&b-&7- {@logo2} &7-&b-&7-"
- send ""
- send "&7» &bAuteur: &fMarioGaming877"
- send "&7» &bVersion: &fV1"
- send ""
- send "&7------------------------------"
- if arg 1 is "on":
- if {maintenance} is false:
- set {maintenance} to true
- set {status.maintenance} to true
- set {chargement.maintenance} to true
- broadcast "{@logo} &3Chargement de la maintenance..."
- wait 1 ticks
- loop all players:
- teleport loop-player at {location.maintenance}
- set slot 4 of loop-player to redstone named "&cMaintenance..."
- send loop-player title "&cMaintenance..." with subtitle "&7AntiBug..." for 2 seconds
- wait 3 seconds
- broadcast "{@logo} &3Chargement terminé..."
- wait 1 seconds
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c10 &3secondes..."
- send all players title "&4&l10"
- wait 5 seconds
- loop all players:
- set {freeze.maintenance.%loop-player%} to location of player
- set {freeze.maintenance} to true
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c5 &3secondes..."
- send all players title "&c&l5"
- wait 1 seconds
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c4 &3secondes..."
- send all players title "&6&l4"
- wait 1 seconds
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c3 &3secondes..."
- send all players title "&e&l3"
- wait 1 seconds
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c2 &3secondes..."
- send all players title "&2&l2"
- wait 1 seconds
- broadcast "{@logo} &3Le Serveur va passer en maintenance dans &c1 &3secondes..."
- send all players title "&a&l1"
- wait 1 seconds
- set {freeze.maintenance} to false
- set {chargement.maintenance} to false
- send all players title "&3éjection des joueurs..."
- loop all players:
- if loop-player doesn't have permission "{@permjoin}":
- kick loop-player due to "{@kick}"
- else:
- send "{@logo} &3Tout les joueurs ont été éjecté. &f(&cMaintenance&f)&3." to loop-player
- clear loop-player's inventory
- else:
- send "{@logo} &3Désolé, la maintenance est déjà &aActivé&3."
- if arg 1 is "off":
- if {maintenance} is true:
- set {status.maintenance} to false
- wait 2 ticks
- broadcast "{@logo} &3La Maintenance c'est terminée..."
- set {maintenance} to false
- else:
- send "{@logo} &3Désolé, la maintenance est déjà &cDésactivé&3."
- if arg 1 is "reload" or "rl":
- make player execute command "/sk reload SkMaintenanceV3.2"
- send "{@logo} &3Reload Succès!"
- if arg 1 is "status":
- if {status.maintenance} is false:
- send "{@logo} &3Status: &f(&cDésactivé&f)"
- if {status.maintenance} is true:
- send "{@logo} &3Status: &f(&aActivé&f)"
- if arg 1 is "setspawn":
- send "{@logo} &3Vous avez définie la Point de Spawn de la Maintenance!"
- set {location.maintenance} to location of player
- wait 2 ticks
- send "{@logo} &3Coordonné: &e%{location.maintenance}%"
- on join:
- if {maintenance} is true:
- if player doesn't have permission "{@permjoin}":
- set join message to ""
- kick the player due to "&eLa maintenance est activée. Contactez le staff sur TS !"
- on quit:
- if {maintenance} is true:
- if player doesn't have permission "{@permjoin}":
- set quit message to ""
- on inventory click:
- if {chargement.maintenance} is true:
- send "{@logo} &cErreur: &3Maintenance &aActivé&3."
- cancel event
- on drop:
- if {chargement.maintenance} is true:
- send "{@logo} &cErreur: &3Maintenance &aActivé&3."
- cancel event
- on place:
- if {chargement.maintenance} is true:
- send "{@logo} &cErreur: &3Maintenance &aActivé&3."
- cancel event
- on any move:
- if {freeze.maintenance} is true:
- teleport player at {freeze.maintenance.%player%}
Advertisement
Add Comment
Please, Sign In to add comment