FlupMC

Untitled

Aug 1st, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 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 "&8- &bProvo"
  13. send "&8- &bCrash"
  14. send "&r"
  15. if arg-1 is set:
  16. if arg-2 is not set:
  17. send "&r"
  18. send "&bDu skal skrive &3/ban <spiller> <grund>"
  19. send "&3Grunde&8:"
  20. send "&8- &bHack"
  21. send "&8- &bProvo"
  22. send "&8- &bCrash"
  23. send "&r"
  24. if arg-2 is set:
  25. if arg-2 is "crash":
  26. if {bans.%{uuid::%arg-1%}%} is true:
  27. send "&r"
  28. send "&bDu kan ikke banne en person, der er bannet."
  29. send "&r"
  30. stop
  31. execute console command "manuaddp %player% litebans.*"
  32. execute player command "banip %arg-1% 1month Crash - %arg-1%"
  33. execute console command "manudelp %player% litebans.*"
  34. set {bans.%{uuid::%arg-1%}%} to true
  35. wait 15 seconds
  36. delete {bans.%{uuid::%arg-1%}%}
  37. stop
  38. if arg-2 is "provo":
  39. if {bans.%{uuid::%arg-1%}%} is true:
  40. send "&r"
  41. send "&bDu kan ikke banne en person, der er bannet."
  42. send "&r"
  43. stop
  44. execute console command "manuaddp %player% litebans.*"
  45. execute player command "banip %arg-1% 1h Provo - %arg-1%"
  46. execute console command "manudelp %player% litebans.*"
  47. set {bans.%{uuid::%arg-1%}%} to true
  48. wait 15 seconds
  49. delete {bans.%{uuid::%arg-1%}%}
  50. stop
  51. if arg-2 is "hack":
  52. if {bans.%{uuid::%arg-1%}%} is true:
  53. send "&r"
  54. send "&bDu kan ikke banne en person, der er bannet."
  55. send "&r"
  56. stop
  57. if {bans.hack.%{uuid::%arg-1%}%} is not set:
  58. set {bans.hack.%{uuid::%arg-1%}%} to 1
  59. execute console command "manuaddp %player% litebans.*"
  60. execute player command "banip %arg-1% 7d Hack - %arg-1%"
  61. execute console command "manudelp %player% litebans.*"
  62. set {bans.%{uuid::%arg-1%}%} to true
  63. wait 15 seconds
  64. delete {bans.%{uuid::%arg-1%}%}
  65. stop
  66. if {bans.hack.%{uuid::%arg-1%}%} is 1:
  67. set {bans.hack.%{uuid::%arg-1%}%} to 2
  68. execute console command "manuaddp %player% litebans.*"
  69. execute player command "banip %arg-1% 14d Hack - %arg-1%"
  70. execute console command "manudelp %player% litebans.*"
  71. set {bans.%{uuid::%arg-1%}%} to true
  72. wait 15 seconds
  73. delete {bans.%{uuid::%arg-1%}%}
  74. stop
  75. if {bans.hack.%{uuid::%arg-1%}%} is 2:
  76. set {bans.hack.%{uuid::%arg-1%}%} to 3
  77. execute console command "manuaddp %player% litebans.*"
  78. execute player command "banip %arg-1% 1month Hack - %arg-1%"
  79. execute console command "manudelp %player% litebans.*"
  80. set {bans.%{uuid::%arg-1%}%} to true
  81. wait 15 seconds
  82. delete {bans.%{uuid::%arg-1%}%}
  83. stop
  84. if {bans.hack.%{uuid::%arg-1%}%} is 3:
  85. delete {bans.hack.%{uuid::%arg-1%}%}
  86. execute console command "manuaddp %player% litebans.*"
  87. execute player command "banip %arg-1% Hack - %arg-1%"
  88. execute console command "manudelp %player% litebans.*"
  89. set {bans.%{uuid::%arg-1%}%} to true
  90. wait 15 seconds
  91. delete {bans.%{uuid::%arg-1%}%}
  92. command /unban [<offline player>]:
  93. permission: perm.unban
  94. permission message: &cDu har ikke adgang til dette.
  95. trigger:
  96. if arg-1 is set:
  97. delete {bans.%{uuid::%arg-1%}%}
  98. execute console command "manuaddp %player% litebans.*"
  99. execute player command "unban %arg-1%"
  100. execute console command "manudelp %player% litebans.*"
  101. stop
  102. command /resetbans [<offline player>] [<text>]:
  103. trigger:
  104. if player has permission "*":
  105. if arg-2 is set:
  106. if arg-2 is "hack":
  107. delete {bans.hack.%{uuid::%arg-1%}%}
  108. delete {bans.%{uuid::%arg-1%}%}
  109. send "&bDu resatte &3%arg-1%&3's &bHACK bans."
  110. if arg-2 is "provo":
  111. delete {bans.%{uuid::%arg-1%}%}
  112. send "&bDu resatte &3%arg-1%&3's &bPROVO bans."
  113. if arg-2 is "crash":
  114. delete {bans.%{uuid::%arg-1%}%}
  115. send "&bDu resatte &3%arg-1%&3's &bCRASH bans."
Advertisement
Add Comment
Please, Sign In to add comment