#BanIp skript help

1 messages · Page 1 of 1 (latest)

river hare
#
command /banip [<offlineplayer>] [<text>]:
 permission: ex.banip
 permission message: &b&l[!] &7You dont contain the permission to do this!
 trigger:
  if arg-1 is set:
   if arg-2 is set:
    set {banne.%arg 1's uuid%} to true
    set {bantime::%arg-1's uuid%} to now
    set {banreason::%arg-1's uuid%} to argument-2
    set {banexpire::%arg-1's uuid%} to "Never"
    set {banbannedby::%arg-1's uuid%} to player
    set {IP::%arg-1's uuid%} to ip of arg-1
    set {BanIP::%arg-1's uuid%} to "True"
    kick arg 1 due to "&7IP-Banned for &c%arg 2% &7by &c%player%"
    ban arg 1 due to "&7IP-Banned for &c%arg 2% &7by &c%player%"
    ban ip of arg 1 due to "&7IP-Banned for &c%arg 2% &7by &c%player%"```
```v

command /unbanip [<offlineplayer>]:
 permission: ex.unbanip
 trigger:
  if arg-1 is set:
   set {ip::%player's uuid%} to ip of arg-1
   unban arg-1 by ip
   make console execute command "pardon-ip %{ip::%player's uuid%}%"
   set {banip::%arg-1's uuid%} to false```
#

when i unbanip it doesn unbanip him

#

no one bouta help me?

median helm
#

I think it is just unban them, I don't think you need to include IP

median helm
#

No

river hare
#
command /unbanip [<offlineplayer>]:
 permission: ex.unbanip
 trigger:
  if arg-1 is set:
   set {ip::%player's uuid%} to ip of arg-1
   unban arg-1
   set {banip::%arg-1's uuid%} to false```
median helm
#

I think so though

river hare
#

so this?

median helm
#

Try

river hare
#

alr ig

median helm
#

I don't think you need to set the ip thingy either

#

but idk

river hare
#

i needa test if u dont mind

median helm
#

alr ig

red granite
#

you know Minecraft server's have a built-in ban system that can utilize both players (uuids) and their ips? No sense in making your own