Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ban [<offline player>] [<text>]:
- trigger:
- if sender does not have permission "minecraft.command.ban":
- send "&cYou do not have permission to do this."
- stop
- if sender is not player:
- if sender is not console:
- send "&cBan command can executable by player or console."
- stop
- if arg 1 is not set:
- send "&cUsage: /ban <Player> [Reason]"
- stop
- if arg 1 has permission "skban.bypass":
- if sender is not console:
- send "&cYou can't banned this player."
- stop
- if uuid of arg 1 contains {banlist::*}:
- send "&cThis player already banned."
- stop
- add arg 1 to {banlist-view::*}
- add uuid of arg 1 to {banlist::*}
- add ip of arg 1 to {banlist-ip::*}
- set {ban.%uuid of arg 1%.by} to name of sender
- set {ban.%uuid of arg 1%.reason} to coloured arg 2
- if arg 2 is not set:
- set {ban.%uuid of arg 1%.reason} to ""
- set {ban.%uuid of arg 1%.ip} to ip of arg 1
- broadcast "&c[Banned]&d%arg 1%&e was banned from this server."
- broadcast "&c[Banned]&eBanned by:&d %sender%"
- if arg 2 is set:
- broadcast "&c[Banned]&eBan reason:&r%coloured arg 2%"
- kick the arg 1 due to "&eYou are banned by &d%sender%&e.Ban reason:&r%coloured arg 2%&e."
- stop
- broadcast "&c[Banned]&eBan reason is not set."
- kick the arg 1 due to "&eYou are banned by &d%sender%&e.Ban reason is not set."
- command /unban [<offline player>]:
- trigger:
- if sender does not have permission "minecraft.command.pardon":
- send "&cYou do not have permission to do this."
- stop
- if sender is not player:
- if sender is not console:
- send "&cUnban command can executable by player or console."
- stop
- if arg 1 is not set:
- send "&cUsage: /unban <Player>"
- stop
- if uuid of arg 1 does not contain {banlist::*}:
- send "&cThis player does not banned."
- send "&bYou can use /banlist to see banlist."
- stop
- remove arg 1 from {banlist-view::*}
- remove uuid of arg 1 from {banlist::*}
- remove {ban.%uuid of arg 1%.ip} from {banlist-ip::*}
- set {ban.%uuid of arg 1%.by} to ""
- set {ban.%uuid of arg 1%.reason} to ""
- broadcast "&b[Unbanned]&d%arg 1%&e was unbanned from this server."
- broadcast "&b[Unbanned]&eUnbanned by:&d %sender%"
- stop
- command /banlist [<text>]:
- trigger:
- if amount of {banlist::*} is 0:
- send "&bThis server do not ban anyone."
- stop
- if arg 1 is "more":
- send "&eThis server was banned &a%amount of {banlist::*}%&e players."
- loop {banlist-view::*}:
- add 1 to {_count}
- send "&a%{_count}%&b.&e%loop-value%"
- send "&aBanned by:&e%{ban.%uuid of loop-value%.by}%"
- send "&aReason:&e%{ban.%uuid of loop-value%.reason}%"
- send "&7-------------------"
- stop
- if arg 1 is "smart":
- send "&eThis server was banned &a%amount of {banlist::*}%&e players."
- send "%{banlist-view::*}%"
- stop
- if arg 1 is "normal":
- send "&eThis server was banned &a%amount of {banlist::*}%&e players."
- loop {banlist-view::*}:
- add 1 to {_count}
- send "&a%{_count}%&b.&e%loop-value%"
- stop
- send "&cUsage: /banlist <Option>"
- send "more...You can get a lot of information."
- send "smart...You can get the minimum information."
- send "normal...The information that can be obtained as smart does not change, but it is easier to read."
- on connect:
- if uuid of player contains {banlist::*}:
- if {ban.%uuid of player%.reason} is not "":
- kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason:&r%{ban.%uuid of player%.reason}%"
- broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
- stop
- kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason is not set."
- broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
- if ip of player contains {banlist::*}:
- if {ban.%uuid of player%.reason} is not "":
- kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason:&r%{ban.%uuid of player%.reason}%"
- broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
- stop
- kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason is not set."
- broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
Advertisement
Add Comment
Please, Sign In to add comment