Advertisement
FlupMC

Untitled

Jul 31st, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. on join:
  2. set {uuid::%player%} to uuid of player
  3. command /ban [<offline player>] [<text>]:
  4. permission: perm.ban
  5. permission message: &cDu har ikke adgang til dette.
  6. trigger:
  7. if arg-1 is not set:
  8. send "&r"
  9. send "&bDu skal skrive &3/ban <spiller> <grund>"
  10. send "&3Grunde&8:"
  11. send "&8- &bHack"
  12. send "&r"
  13. if arg-1 is set:
  14. if arg-2 is not set:
  15. send "&r"
  16. send "&bDu skal skrive &3/ban <spiller> <grund>"
  17. send "&3Grunde&8:"
  18. send "&8- &bHack"
  19. send "&r"
  20. if arg-2 is set:
  21. if arg-2 is "hack":
  22. if {bans.%{uuid::%arg-1%}%} is true:
  23. send "&r"
  24. send "&bDu kan ikke banne en person, der er bannet."
  25. send "&r"
  26. stop
  27. if {bans.hack.%{uuid::%arg-1%}%} is not set:
  28. set {bans.hack.%{uuid::%arg-1%}%} to 1
  29. execute console command "manuaddp %player% litebans.*"
  30. execute player command "banip %arg-1% 7d Hack - %arg-1%"
  31. execute console command "manudelp %player% litebans.*"
  32. set {bans.%{uuid::%arg-1%}%} to true
  33. wait 30 seconds
  34. delete {bans.%{uuid::%arg-1%}%}
  35. stop
  36. if {bans.hack.%{uuid::%arg-1%}%} is 1:
  37. set {bans.hack.%{uuid::%arg-1%}%} to 2
  38. execute console command "manuaddp %player% litebans.*"
  39. execute player command "banip %arg-1% 14d Hack - %arg-1%"
  40. execute console command "manudelp %player% litebans.*"
  41. set {bans.%{uuid::%arg-1%}%} to true
  42. wait 30 seconds
  43. delete {bans.%{uuid::%arg-1%}%}
  44. stop
  45. if {bans.hack.%{uuid::%arg-1%}%} is 2:
  46. set {bans.hack.%{uuid::%arg-1%}%} to 3
  47. execute console command "manuaddp %player% litebans.*"
  48. execute player command "banip %arg-1% 1month Hack - %arg-1%"
  49. execute console command "manudelp %player% litebans.*"
  50. set {bans.%{uuid::%arg-1%}%} to true
  51. wait 30 seconds
  52. delete {bans.%{uuid::%arg-1%}%}
  53. stop
  54. if {bans.hack.%{uuid::%arg-1%}%} is 3:
  55. delete {bans.hack.%{uuid::%arg-1%}%}
  56. execute console command "manuaddp %player% litebans.*"
  57. execute player command "banip %arg-1% Hack - %arg-1%"
  58. execute console command "manudelp %player% litebans.*"
  59. set {bans.%{uuid::%arg-1%}%} to true
  60. wait 30 seconds
  61. delete {bans.%{uuid::%arg-1%}%}
  62.  
  63. command /resetbans [<offline player>] [<text>]:
  64. trigger:
  65. if player has permission "*":
  66. if arg-2 is set:
  67. if arg-2 is "hack":
  68. delete {bans.hack.%{uuid::%arg-1%}%}
  69. delete {bans.%{uuid::%arg-1%}%}
  70. send "&bDu resatte &3%arg-1%&3's &bHACK bans."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement