Hey guys
I've a problem with my ban system with skript
When I want to ban a player it works. But when I try them to unban it doesn't works the banned player can't join the server
I've a problem with my ban system with skript
When I want to ban a player it works. But when I try them to unban it doesn't works the banned player can't join the server
MyPlugins (Skript): SkQuery,Skellett,Skript,WildSkript,skDragon,skRayfall,skUtilities
Sorry for my bad English im German ;(
[doublepost=1534967531,1534967209][/doublepost]At the unban code there should be
I can't edit the thread
I've a problem with my ban system with skript
When I want to ban a player it works. But when I try them to unban it doesn't works the banned player can't join the server
I've a problem with my ban system with skript
When I want to ban a player it works. But when I try them to unban it doesn't works the banned player can't join the server
code_language.skript:
on connect:
if {ban.%player's UUID%} is true:
kick player due to "&8&m----------&r &4&oBan &r&8&m----------%nl%%nl%&cYou were banned from the server%nl%Reason: %{ban.reason.%player's UUID%}%"
command /ban [<offlineplayer>] [<text>]:
permission: ban.use
permission message: &cYou don't have the permission to execute this command
trigger:
if arg-1 is set:
if arg-2 is set:
if arg-1 doesn't have permission "ban.use":
set {ban.reason.%arg-1's UUID%} to arg-2
set {ban.%arg-1's UUID%} to true
kick arg-1 due to "&8&m----------&r &4&oBan &r&8&m----------%nl%%nl%&cYou were banned from the server%nl%Reason: %arg-2%"
send "&cYou banned %arg-1% for %arg-2%"
else:
send "&cYou can't ban this player"
else:
send "&cCorrect usage: /ban [<player>] [<reason>]"
else:
send "&cCorrect usage: /ban [<player>] [<reason>]"
command /unban [<offlineplayer>]:
permission: ban.use
permission message: &cYou don't have the permission to execute this command
trigger:
if arg-1 is set:
set {ban.%arg-1's UUID%} to true
message "&cYou unbanned %arg-1%"
MyPlugins (Skript): SkQuery,Skellett,Skript,WildSkript,skDragon,skRayfall,skUtilities
Sorry for my bad English im German ;(
[doublepost=1534967531,1534967209][/doublepost]At the unban code there should be
code_language.skript:
set {ban.%arg-1's UUID%} to false