w2llplayzz Posted March 1, 2023 Share Posted March 1, 2023 command /ban [<offlineplayer>] [<text>]: trigger: if player does not have permission "ban.use": send "&cYou are not permitted to run this command!" stop if arg-1 is not set: send "&c/ban (player) [reason] [-s]" stop if arg-1 has permission "ban.use": send "&cThat player cannot be banned!" stop if player is not set: set {_p} to "CONSOLE" else: set {_p} to player if arg-1 is banned: send "&cThat player is already banned!" stop if arg-2 is not set: set {_r} to "N/A" else: set {_r} to arg-2 if {_r} contains "-s": replace all " -s" and "-s " with "" in {_r} set {_silent} to true if {_silent} is set: loop all players: if loop-player has permission "ban.use": send "&7&o(SILENT) &b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[FOREVER]" to loop-player else: broadcast "&b%{_p}% &7banned &b%arg-1% &7for &c%{_r}% &7[FOREVER]" ban arg-1 due to {_r} if arg-1 is online: kick arg-1 due to "&7You are now banned! If you think this is an error, report it at https://discord.gg/SXdVPt9E8U! &bReason: &7%{_r}%" add arg-1 to {banlist::*} Please help me make the ban reason have multiple lines! Thanks! Owners of OvercastSMP.minehut.gg You may see us in a post and it's going to be either w1llplayzz, alergicpickle, or switchblade. Link to comment Share on other sites More sharing options...
coshnaut Posted March 1, 2023 Share Posted March 1, 2023 "You have been%nl%BANNED%nl%%nl%from this server" By writing %nl% you can add multiple lines to almost anything, such as item lore, broadcast messages, and even ban reasons. You could also write %newline% to remember what %nl% means but i prefer to write %nl% because it is quicker and easier Skript is omnipotent, Skript is everything Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now