Advertisement
Guest User

here

a guest
May 26th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. options:
  2.  
  3. # PREFIX OPTION (USE COLOR CODES)
  4. # This is the one that will be used when sending the alerts, and using the admin command.
  5. prefix: &3Server
  6.  
  7. # DIVIDER OPTION (USE COLOR CODES)
  8. # This is the option that will be used to divide up the prefix, and the text.
  9. divider: &8-
  10.  
  11. # ANTICHEAT NAME
  12. # This is the option for the anticheat name.
  13. anticheatname: Anticheat
  14.  
  15. # STAFF PERM
  16. # The permission for staff members
  17. alertperm: staff
  18.  
  19. # ADMIN PERMISSION
  20. # This will be used for the admin command
  21. adminperm: admin
  22.  
  23. # MAX CPS (AUTOCLICKER)
  24. # Depending on the max cps, it will send alerts to staff members
  25. maxcps: 15
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. #
  69. # HARD CODE
  70. #
  71. # DO NOT EDIT UNLESS YOU KNOW WHAT YOURE DOING
  72. #
  73.  
  74. command /{@anticheatname} [<text>] [<text>]:
  75. permission: {@alertperm}
  76. permission message: &cYou dont have permission!
  77. trigger:
  78. if arg 1 is not set:
  79. send ""
  80. send "&3&lSUBCOMMANDS"
  81. send ""
  82. send "&3/{@anticheatname} notify"
  83. send "&c- Toggle anticheat notifications"
  84. send ""
  85. if arg 1 is set:
  86. if arg 1 is not "notify":
  87. send ""
  88. send "&3&lSUBCOMMANDS"
  89. send ""
  90. send "&3/{@anticheatname} notify"
  91. send "&c- Toggle anticheat notifications"
  92. send ""
  93. if arg 1 is "notify":
  94. if {alert::%player's uuid%} is true:
  95. set {alert::%player's uuid%} to false
  96. send "{@prefix} {@divider} &7You have toggled alerts &cOff"
  97. if {alert::%player's uuid%} is false:
  98. set {alert::%player's uuid%} to true
  99. send "{@prefix} {@divider} &7You have toggled alerts &aOn"
  100.  
  101.  
  102.  
  103. on join:
  104. if {alert::%player's uuid%} is not set:
  105. set {alert::%player's uuid%} to true
  106.  
  107. every 1 second:
  108. loop all players:
  109. set {clicks::%loop-player's uuid%} to 0
  110.  
  111. on click:
  112. add 1 to {clicks::%player's uuid%}
  113. if {clicks::%player's uuid%} is greater or equal to {@maxcps}:
  114. loop all players:
  115. player has permission "staff"
  116. {alert::%loop-player's uuid%} is true
  117. player is not holding any pickaxe
  118. send "{@prefix} {@divider} &e%player% &7is suspected of &eautoclicker &f(%{clicks::%player's uuid%}% cps)"
  119.  
  120. on shoot:
  121. if projectile is an arrow:
  122. add 1 to {shots::%shooter's uuid%}
  123. if {shots::%shooter's uuid%} is greater or equal to 7:
  124. loop all players:
  125. player has permission "staff"
  126. {alert::%loop-player's uuid%} is true
  127. send "{@prefix} {@divider} &e%player% &7is suspected of &efastbow &f(%{shots::%shooter's uuid%}% shots a sec)"
  128.  
  129. every 2 seconds:
  130. loop all players:
  131. set {shots::%loop-player's uuid%} to 0
  132.  
  133. on damage of player:
  134. attacker is a player
  135. projectile doesn't exist
  136. if distance between attacker and victim is greater than 4.3:
  137. loop all players:
  138. player has permission "staff"
  139. {alert::%loop-player's uuid%} is true
  140. send "{@prefix} {@divider} &e%attacker% &7is suspected of &ereach"
  141.  
  142. every 3 seconds:
  143. loop all players:
  144. loop-player's gamemode is not creative
  145. loop-player is not flying
  146. set {xlocation.%loop-player%} to the x location of loop-player
  147. wait 2 seconds
  148. set {xlocation2.%loop-player%} to the x location of loop-player
  149. if difference between {xlocation.%loop-player%} and {xlocation2.%loop-player%} > 14:
  150. player has permission "staff"
  151. {alert::%loop-player's uuid%} is true
  152. send "{@prefix} {@divider} &e%player% &7is suspected of &ereach"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement