Zeldaboy111

Skript #91

Jan 23rd, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. options:
  2. {ban::%player%::btime} = {ban::%arg 1%::btime}
  3. {ban::%player%::btime} = {ban::%loop-value%::btime}
  4.  
  5. {ban::%player%::tbtime} = {ban::%arg 1%::tbtime}
  6. {ban::%player%::tbtime} = {ban::%loop-value%::tbtime}
  7.  
  8. {ban::%player%::bformat} = {ban::%arg 1%::bformat}
  9. {ban::%player%::bformat} = {ban::%loop-value%::bformat}
  10.  
  11. {ban::%player%::btsec} = {ban::%arg 1%::btsec}
  12. {ban::%player%::btsec} = {ban::%loop-value%::btsec}
  13.  
  14. {ban::%player%::btmin} = {ban::%arg 1%::btmin}
  15. {ban::%player%::btmin} = {ban::%loop-value%::btmin}
  16.  
  17. {ban::%player%::bhour} = {ban::%arg 1%::bthour}
  18. {ban::%player%::bhour} = {ban::%loop-value%::bthour}
  19.  
  20. {ban::%player%::btday} = {ban::%arg 1%::btday}
  21. {ban::%player%::btday} = {ban::%loop-value%::btday}
  22.  
  23. {ban::%player%::bhour} = {ban::%arg 1%::btmonth}
  24. {ban::%player%::bhour} = {ban::%loop-value%::btmonth}
  25.  
  26. {ban::%player%::bhour} = {ban::%arg 1%::btyear}
  27. {ban::%player%::bhour} = {ban::%loop-value%::btyear}
  28.  
  29.  
  30. {ban::%player%::unban} = {ban::%arg 1%::unban}
  31.  
  32. on load:
  33. set {pu2.0::title} to "&4[&cPu&4]&c"
  34.  
  35. every 1 second:
  36. loop {ban::banlist::*}:
  37. add 1 to {ban::%loop-value%::btsec}
  38.  
  39. if {ban::%loop-value%} is "sec":
  40. if {ban::%loop-value%::btime} is more than {ban::%loop-value%::tbtime}-1:
  41. remove loop-value from {ban::banlist::*}
  42. delete {ban::%loop-value%::btime}
  43. delete {ban::%loop-value%::tbtime}
  44. delete {ban::%loop-value%::btsec}
  45. delete {ban::%loop-value%::btmin}
  46. delete {ban::%loop-value%::bthour}
  47. delete {ban::%loop-value%::btday}
  48. delete {ban::%loop-value%::btmonth}
  49. delete {ban::%loop-value%::btyear}
  50. stop
  51.  
  52. if {ban::%loop-value%::btsec} is more than "59":
  53. add 1 to {ban::%loop-value%::btmin}
  54. delete {ban::%loop-value%::btsec}
  55.  
  56.  
  57.  
  58. command /punishment [<offline player>]:
  59. aliases: pu
  60. trigger:
  61. if arg 1 is set:
  62. open chest with 2 rows named "&4&l%arg 1%" to player
  63. format slot 0 of player with a diamond named "&b&lX-Ray" with lore "&77 dagen ban" to close then run [execute console command "/cpu %arg 1% X-Ray"]
  64.  
  65. stop
  66. else:
  67. send "%{pu2.0::title}% Je moet nog een speler opgeven."
  68. stop
  69.  
  70. command /cpu [<offline player>] [<text>]:
  71. trigger:
  72. if executor is console:
  73. if arg 2 is "X-Ray":
  74. add arg 1 to {ban::banlist::*}
  75. set {ban::%arg 1%::btime} to 0
  76. set {ban::%arg 1%::tbtime} to 10
  77. set {ban::%arg 1%::bformat} to "sec"
  78. set {ban::%arg 1%::unban} to {ban::%arg 1%::tbtime}-{ban::%arg 1%::btime}
  79. kick arg 1 due to "&6&lBanned!%nl%&4Rede: &cX-Ray%nl%&4Ban date: &c%now%%nl%&4Unban over: &c%{ban::%arg 1%::unban}% dagen%nl%&4Appeal: &cNee"
  80. stop
  81.  
  82. command /punban [<offline player>]:
  83. trigger:
  84. if {ban::%arg 1%::btime} is more than 0:
  85. delete {ban::%arg 1%::btime}
  86. remove arg 1 from {ban::banlist::*}
  87. send "%{pu2.0::title}% Succesvol de speler &4%arg 1% &cunbanned."
  88. stop
  89. else:
  90. send "%{pu2.0::title}% Deze speler is niet gebanned."
  91. stop
  92.  
  93. command /blist:
  94. trigger:
  95. send "%{ban::banlist::*}%"
  96. stop
Add Comment
Please, Sign In to add comment