Advertisement
Aooni-Server

uuid ban

Aug 25th, 2019
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. on command /ban [<player>] [<text>]:
  2.     arg 1 is set
  3.     set {uuidban::%arg 1's uuid%} to true
  4.     if arg 2 is set:
  5.         set {uuidbanreason::%arg 1's uuid%} to arg 2
  6.     else:
  7.         set {uuidbanreason::%arg 1's uuid%} to "no reason"
  8.     set {uuidbaner::%arg 1's uuid%} to "%player%"
  9.  
  10. on command /pardon [<player>]:
  11.     arg 1 is set
  12.     set {uuidban::%arg 1's uuid%} to false
  13.  
  14. on connect:
  15.     {uuidban::%player's uuid%} is true
  16.     kick the player due to "&cYou were banned from this server%newline%&cReason:%{uuidbanreason::%player's uuid%}%%newline%Banned By:%{uuidbaner::%player's uuid%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement