Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. command /ban <offlineplayer> <text>:
  2. permission: sk.ban
  3. trigger:
  4. ban arg 1 because of arg 2
  5. broadcast "%arg 1% &4wurde von %player% permanent gebannt! Grund: &e%arg 2%"
  6. log "%player% hat %arg 1% gebannt wegen %arg 2%." to "Ban.log"
  7.  
  8. every minute:
  9. add 1 to {banntime}
  10. loop {tempbanned::*}:
  11. if {tempban.%loop-value%} is set:
  12. if {tempban.%loop-value%} is more than {banntime}-1:
  13. unban "%loop-value%"
  14. remove loop-value from {tempbanned::*}
  15.  
  16. command /tempban <offlineplayer> <text> <number>:
  17. permission: sk.tempban
  18. trigger:
  19. broadcast "%arg 1% &4wurde von %player% für %arg 3% Stunde/n gebannt. Grund: &e%arg 2%"
  20. set {tempban.%arg-1%} to {banntime}+arg 3
  21. add arg 1 to {tempbanned::*}
  22. wait 1 tick
  23. ban arg 1 because of "%arg 2% &a(%arg 3% Stunde/n)&7"
  24. kick arg 1
  25. log "%player% hat %arg 1% für %arg 3% Stunde/n gebannt wegen %arg 2%" to "Ban.log"
  26.  
  27. command /bancheck <offlineplayer>:
  28. permission: sk.ban
  29. trigger:
  30. if arg-1 is banned:
  31. send "%arg 1% ist für %{tempban.%arg-1%}-{banntime}% Stunde/n gebannt." to player
  32. else:
  33. send "Spieler ist nicht gebannt"
  34.  
  35. command /unban <offlineplayer>:
  36. permission: sk.unban
  37. trigger:
  38. unban arg 1
  39. clear {tempban.%arg-1%}
  40. message "&7%arg 1% wurde entbannt!"
  41. log "%player% hat den Spieler %arg 1% entbannt" to "Unban.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement