#Extra argument

1 messages · Page 1 of 1 (latest)

pastel zodiac
#

How can I make it so that this script allows for temporary bans where there is an extra arguement that allows the person banning someone to either put in a period of time or permenant if they have the permission

#
command /ban <player> <text>:
    permission: punishment.ban
    permission message: &cYou do not have the permission to do this!
    trigger:
        ban "%{ip.%arg 1%}%" because "{@tag} &6%arg 2% &5by %player%"
        ban "%arg 1%" because "{@tag} &6%arg 2% &5by %player%"
        kick arg 1 because "{@tag} &6Banned for %arg 2% &5by %player%"
        broadcast "&b%arg 1% &7was &bbanned &7by &b%player% &7for &b%arg 2%"
gusty basalt
#

you could make a separate ramp ban command

#

also there is a kick and ban effect so you can merge it into one line

pastel zodiac
stray pulsar
#

Im pretty sure commands accept <timespan>

pastel zodiac