Ban players last IP

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

BigErrIDK

Member
Apr 5, 2020
2
0
1
Skript Version (do not put latest): Skript 2.5-alpha6-MH
Skript Author: Bensku
Minecraft Version: 1.16 with Protocolsupport

Problem:
I need the player's ip to be autobanned if they are kicked
Skript:

Code:
on join:
  wait 1 second
  set {acip::%player's uuid%} to player's ip

on kick:
 if {threat::%player's uuid%} is over 200: (this is from a different part of the skript which leaking i cant leak)
   ban {acip::%player's uuid%} "&cSAC Autoban &7| Reason: Hacking | Date %now% | If you wish to appeal please message a staff member"
Errors on Reload:

upload_2020-7-25_17-2-42.png




Addons using (including versions):
Tuske 1.8.2 Pikachu Patch 3

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I have also tried just IP banning the player
 

Attachments

  • upload_2020-7-25_17-2-10.png
    upload_2020-7-25_17-2-10.png
    35.3 KB · Views: 220
You forgot 'due to'
Code:
ban {acip::%player's uuid%} due to "&cSAC Autoban &7| Reason: Hacking | Date %now% | If you wish to appeal please message a staff member"
 
Status
Not open for further replies.