Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # _____ _ _ ___ ___
- #/ __ \ | | | | \/ |
- #| / \/ |__ __ _| |_ | . . | __ _ _ __ __ _ __ _ ___ _ __
- #| | | '_ \ / _` | __| | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|
- #| \__/\ | | | (_| | |_ | | | | (_| | | | | (_| | (_| | __/ |
- # \____/_| |_|\__,_|\__| \_| |_/\__,_|_| |_|\__,_|\__, |\___|_|
- # __/ |
- # |___/
- #
- #______ _ _ ___ _ _______ _ _ _ __
- #| ___ \ | | | | / _ \| | / | ___ \ (_) | | | | \ \
- #| |_/ /_ _ | | | |_/ /_\ | |_ _ __ _____ __ | || |_/ /_____ ___ _ __ | | | | ___ ___ | |
- #| ___ | | | | | | | __| _ | __| '__/ _ \ \/ / | || // _ \ \ / | | '_ \| |/\| |/ _ \ / _ \| |
- #| |_/ | |_| | | |___| |_| | | | |_| | | __/> < | || |\ | __/\ V /| | | | \ /\ | (_) | (_) | |
- #\____/ \__, | \_____/\__\_| |_/\__|_| \___/_/\_\ | |\_| \_\___| \_/ |_|_| |_|\/ \/ \___/ \___/| |
- # __/ | \_\ /_/
- # |___/
- #
- command /cm [<text>]:
- aliases: /chatmanager
- trigger:
- if arg 1 is set:
- execute console command "sk reload ChatManager"
- send "&7[&9ChatManager&7] &aSkript reloaded successfully!"
- else:
- send "&7[&9ChatManager&7] &aThis server is running ChatManager v1.0 by Revin/LtAtrex"
- # _____ _ _ ___ ___
- #/ __ | | | | | \/ |
- #| / \| |__ __ _| |_ | . . | ___ _ __ _ _
- #| | | '_ \ / _` | __| | |\/| |/ _ | '_ \| | | |
- #| \__/| | | | (_| | |_ | | | | __| | | | |_| |
- # \____|_| |_|\__,_|\__| \_| |_/\___|_| |_|\__,_|
- #
- command /chat:
- aliases: /c
- permission: skcm.menu
- permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
- trigger:
- open chest with 1 row named "&cChat Menu &7[&9ChatManager&7]" to player
- wait 1 tick
- format slot 0 of player with 1 redstone block named "&cPause Chat &a(GLOBAL)" to close then run [execute player command "/mutechat"]
- format slot 1 of player with 1 blue wool named "&9Staff Chat &a(PERSONAL)" to close then run [execute player command "/sc"]
- format slot 2 of player with 1 green wool named "&bClear Chat &a(GLOBAL)" to close then run [execute player command "/clearchat"]
- #___ ___ _ _____ _ _
- #| \/ | | | / __ | | | |
- #| . . |_ _| |_ ___ | / \| |__ __ _| |_
- #| |\/| | | | | __/ _ \ | | | '_ \ / _` | __|
- #| | | | |_| | || __/ | \__/| | | | (_| | |_
- #\_| |_/\__,_|\__\___| \____|_| |_|\__,_|\__|
- #
- command /mutechat [<time span>]:
- aliases: /mc
- permission: skcm.mutechat
- permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
- trigger:
- if arg 1 is set:
- set {chatmute} to 1
- broadcast "&7[&9Chat&7] &cThe chat is now muted for %arg 1%!"
- wait arg 1
- set {chatmute} to 0
- broadcast "&7[&9Chat&7] &aThe chat is now unmuted!"
- else:
- if {chatmute} is 0:
- set {chatmute} to 1
- broadcast "&7[&9Chat&7] &cThe chat is now muted!"
- else:
- set {chatmute} to 0
- broadcast "&7[&9Chat&7] &aThe chat is now unmuted!"
- on chat:
- if {chatmute} is 1:
- if player has permission "skcm.chatmute.bypass":
- else:
- cancel event
- send "&7[&9Chat&7] &cThe chat is currently muted!"
- else:
- # _____ _ __ __ _____ _ _
- #/ ___| | / _|/ _| / __ | | | |
- #\ `--.| |_ __ _| |_| |_ | / \| |__ __ _| |_
- # `--. | __/ _` | _| _| | | | '_ \ / _` | __|
- #/\__/ | || (_| | | | | | \__/| | | | (_| | |_
- #\____/ \__\__,_|_| |_| \____|_| |_|\__,_|\__|
- #
- command /staffchat [<text>]:
- aliases: /sc
- permission: skcm.staffchat
- permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
- trigger:
- if arg 1 is not set:
- if {sc.%player%} is 0:
- set {sc.%player%} to 1
- send "&7[&9Staff Chat&7] &aStaff chat is now enabled!"
- else:
- set {sc.%player%} to 0
- send "&7[&9Staff Chat&7] &cStaff chat is now disabled!"
- if arg 1 is set:
- loop all players:
- loop-player has permission "skcm.staffchat":
- send "&7[&9Staff Chat&7] &b%player%: &7%arg 1%" to loop-player
- on chat:
- if {sc.%player%} is 1:
- cancel event
- execute player command "/sc %message%"
- # _____ _ _____ _ _
- #/ __ \ | / __ \ | | |
- #| / \/ | ___ __ _ _ __ | / \/ |__ __ _| |_
- #| | | |/ _ \/ _` | '__| | | | '_ \ / _` | __|
- #| \__/\ | __/ (_| | | | \__/\ | | | (_| | |_
- # \____/_|\___|\__,_|_| \____/_| |_|\__,_|\__|
- #
- command /clearchat:
- aliases: /cc
- permission: skcm.clearchat
- permission message: &7[&9ChatManager&7] &cYou don't have permission to use this command!
- trigger:
- loop 100 times:
- broadcast ""
- broadcast "&7[&9ChatManager&7] &aChat cleared by %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement