SHARE
TWEET

Untitled

a guest Dec 13th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.     {maintenance} is true:
  3.         if player is op:
  4.             stop
  5.         {bypass.%player%} is true:
  6.             stop
  7.         else:
  8.             set join message to ""
  9.             kick player due to "&cNotre serveur est actuellement en maintenance !"
  10.             stop
  11. on quit:
  12.     {maintenance} si true:
  13.         if {bypass.%player%} is not set:
  14.             set quit message to ""
  15.  
  16. command /maintenance:
  17.     permission: maintenance.perm
  18.     permission message: &cAucune permission !
  19.     trigger:
  20.         if {maintenance} is not set:
  21.             set {maintenance} to true
  22.             broadcast "&cMaintenance activée !"
  23.             wait 10 ticks
  24.             kick all players due to "&cLa maintenance a été activer !"
  25.             stop
  26.         if {maintenance} is true:
  27.             clear {maintenance}
  28.             broadcast "&a%player% a &cdesactivé &ala maintenance"
  29.             stop
  30.  
  31. command /bypass [<text>]:
  32.     permission: bypass.perm
  33.     permission message: &cAucune permission !
  34.     trigger:
  35.         if arg 1 is not set:
  36.             message "&cUsage: /bypass <joueur>"
  37.         if arg 1 is set:
  38.             if {bypass.%arg%} is not set:
  39.                 set {bypass.%arg%} to true
  40.                 message "&aTu as bien bypass %arg%"
  41.                 stop
  42.             if {bypass.%arg%} is true:
  43.                 clear {bypass.%arg%}
  44.                 message "&cTu as bien retiré %arg% du bypass !"
  45.                 loop all players:
  46.                     loop-player is arg
  47.                     kick loop-player due to "&cTu as été retirer du bypass !"
  48.                     stop
  49.                 stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top