Hello, I'm working on a ban skript, but I want the "You are banned from this server! Reason:" message to be removed. Any ideas?
I'm using Skript and SkQuerry (for the %newline% variable).
I'm using Skript and SkQuerry (for the %newline% variable).
code_language.skript:
command /aban [<offlineplayer>] [<text>]:
trigger:
player has permission "bans.ban":
if arg 1 is set:
if arg 1 has played on this server before:
if arg 2 is set:
set {banned.%arg 1%} to true
set {ban.time.%arg 1%} to now
set {ban.reason.%arg 1%} to argument-2
set {ban.expire.%arg 1%} to "Never"
set {ban.bannedby.%arg 1%} to player
set {BanIP.%arg 1%} to "False"
kick arg 1 due to "&7Banned by: &c%{ban.bannedby.%arg 1%}%%nl%&7Reason: &c%arg 2%%nl%&7Banned on: &c%{ban.time.%arg 1%}%%nl%&7This ban will expire: &c%{ban.expire.%arg 1%}%%nl%&7IPBan: &c%{BanIP.%arg 1%}%"
ban arg 1 due to "&7Banned by: &c%{ban.bannedby.%arg 1%}%%nl%&7Reason: &c%arg 2%%nl%&7Banned on: &c%{ban.time.%arg 1%}%%nl%&7This ban will expire: &c%{ban.expire.%arg 1%}%%nl%&7IPBan: &c%{BanIP.%arg 1%}%"
loop all players:
if loop-player has permission "bans.notify":
send "&8[&c&lBANS&8] &c%player% &7banned &c%arg 1%&7!" to loop-player
send "&7Reason: &c%arg 2%&7." to loop-player
else:
send "&7You must use &a/aban <player> <reason>&7."
else if arg 1 is banned:
send "&c%arg 1% &7is already banned."
else if arg 1 hasn't played on this server before:
send "&c%arg 1% &7has never joined."
else:
send "&7You must use &a/aban <player> <reason>&7."
else if player doesn't have permission "bans.ban":
send "&cYou don't have permission to do this!"