Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. #---------------------BANS----------------------
  2.  
  3.  
  4. command /tempban [<offline player>] [<string>] [<timespan>]:
  5. permission: tb.use
  6. permission message: No Permission
  7. trigger:
  8. if arg 1 or arg 2 or arg 3 is not set:
  9. send "&aUsage: /tempban (player) (reason) (time - eg. 30 days, 2 weeks)"
  10. stop
  11. if {Banned::%uuid of arg 1%} is true:
  12. send "&a&l%arg 1% &ais already banned"
  13. stop
  14. set {Banned::%uuid of arg 1%} to true
  15. kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  16. ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  17. add arg 2 to {bans::%uuid of arg 1%::*}
  18. broadcast "&a&l%arg 1% &ahas been &a&ltemp-banned &aby &a&l%executor% &afor &a&l%arg 3%"
  19. wait arg 3
  20. unban arg 1
  21.  
  22. command /stempban [<offline player>] [<string>] [<timespan>]:
  23. permission: tb.use
  24. permission message: No Permission
  25. trigger:
  26. if arg 1 or arg 2 or arg 3 is not set:
  27. send "&aUsage: /stempban (player) (reason) (time - eg. 30 days, 2 weeks)"
  28. stop
  29. if {Banned::%uuid of arg 1%} is true:
  30. send "&a&l%arg 1% &ais already banned"
  31. stop
  32. set {Banned::%uuid of arg 1%} to true
  33. kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  34. ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&l%arg 3%%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  35. add arg 2 to {bans::%uuid of arg 1%::*}
  36. loop all players:
  37. if loop-player has permission "s.see":
  38. send "&7<Silent> &a&l%arg 1% &ahas been &a&ltemp-banned &aby &a&l%executor% &afor &a&l%arg 3%" to loop-player
  39. wait arg 3
  40. unban arg 1
  41.  
  42. command /ban [<offline player>] [<string>]:
  43. permission: b.use
  44. permission message: No Permission
  45. trigger:
  46. if arg 1 or arg 2 is not set:
  47. send "&aUsage: /ban (player) (reason)"
  48. stop
  49. if {Banned::%uuid of arg 1%} is true:
  50. send "&a&l%arg 1% &ais already banned"
  51. stop
  52. set {Banned::%uuid of arg 1%} to true
  53. kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  54. ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  55. add arg 2 to {bans::%uuid of arg 1%::*}
  56. broadcast "&a&l%arg 1% &ahas been &a&lperm-banned &aby &a&l%executor%"
  57.  
  58.  
  59. command /sban [<offline player>] [<string>]:
  60. permission: b.use
  61. permission message: No Permission
  62. trigger:
  63. if arg 1 or arg 2 is not set:
  64. send "&aUsage: /sban (player) (reason)"
  65. stop
  66. if {Banned::%uuid of arg 1%} is true:
  67. send "&a&l%arg 1% &ais already banned"
  68. stop
  69. set {Banned::%uuid of arg 1%} to true
  70. kick arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  71. ban arg 1 because "&cYou have been banned%nl%&aStaff Member: &a&l%executor%%nl%&aTime: &a&lPermanent%nl%&aReason: &a&l%arg 2%%nl%%nl%&eIf your ban is permanent, appeal at: 14instapvp.namelesshosting.com"
  72. add arg 2 to {bans::%uuid of arg 1%::*}
  73. loop all players:
  74. if loop-player has permission "s.see":
  75. send "&7<Silent> &a&l%arg 1% &ahas been &a&lperm-banned &aby &a&l%executor%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement