Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- version: 2.2.5
- databasePrefix: jdogdatabase_
- useEssentialsmute: true
- #Super Chat Logger logs each chat multple times. Global Chat, Timed Global Chat, Personal Chat, Personal Timed Chat, Uuid logged chat, and more! (Could be resource intense. Use wisley)
- superChatLoggerEnabled: true
- every 1 second:
- if {{@databasePrefix}serverinfo.cchat.options.prefix} is not set:
- set {{@databasePrefix}serverinfo.cchat.options.prefix} to "&c[ChatFilter]"
- message "&c[CChat Version {@version}] Prefix option not found... creating one for you." to console
- if {{@databasePrefix}serverinfo.cchat.options.nopermission} is not set:
- set {{@databasePrefix}serverinfo.cchat.options.nopermission} to "&cNo Permission."
- message "&c[CChat Version {@version}] NoPermission option not found... creating one for you." to console
- if {{@databasePrefix}serverinfo.cchat.options.adminchatprefix} is not set:
- set {{@databasePrefix}serverinfo.cchat.options.adminchatprefix} to "&c&l[&d&lAdminChat&c&l]"
- message "&c[CChat Version {@version}] AdminChatPrefix option not found... creating one for you." to console
- if {{@databasePrefix}serverinfo.cchat.options.staffchatprefix} is not set:
- set {{@databasePrefix}serverinfo.cchat.options.staffchatprefix} to "&c&l[&b&lStaffChat&c&l]"
- message "&c[CChat Version {@version}] StaffChatPrefix option not found... creating one for you." to console
- every 2 seconds:
- loop all players:
- if {{@databasePrefix}CChat.player.%loop-player%.recentchats} is more than 0:
- remove 1 from {{@databasePrefix}CChat.player.%loop-player%.recentchats}
- if {{@databasePrefix}CChat.player.%loop-player%.recentchats} is less than 0:
- set {{@databasePrefix}CChat.player.%loop-player%.recentchats} to 0
- on join:
- delete {{@databasePrefix}CChat.player.%player%.recentchats}
- on chat:
- add 1 to {{@databasePrefix}CChat.player.%player%.recentchats}
- if {{@databasePrefix}CChat.player.%player%.recentchats} is more than 4:
- if player does not have the permission "ccat.spam.bypass":
- add 1 to {{@databasePrefix}CChat.Spam.%player's uuid%}
- wait 1 tick
- kick player due to "&cNo Spamming! &dYou have been kicked for spamming &b&l&n%{{@databasePrefix}CChat.Spam.%player's uuid%}%&d times."
- broadcast "&e%player% &dkicked for spamming &b&l%{{@databasePrefix}CChat.Spam.%player's uuid%}% &dtimes."
- stop
- command /clearmychat:
- permission: cchat.clearmychat
- permission message: %{{@databasePrefix}serverinfo.cchat.options.nopermission}%
- aliases: cmc
- trigger:
- loop 150 times:
- message ""
- message "&aYou cleared your chat."
- command /sc [<text>]:
- aliases: staffchat, schat
- trigger:
- if player does not have the permission "cchat.staffchat":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- message "&c/sc <message>"
- stop
- message "%{{@databasePrefix}serverinfo.cchat.options.staffchatprefix}% &a%player%&e: &f %argument%" to console
- log "[CChat] [StaffChat] %player% -> %arg 1%" to "CChat/StaffChat"
- loop all players:
- loop-player has the permission "cchat.staffchat":
- message "%{{@databasePrefix}serverinfo.cchat.options.staffchatprefix}% &a%player%&e: &f %argument%" to loop-player
- command /ac [<text>]:
- aliases: adminchat, achat
- trigger:
- if player does not have the permission "cchat.adminchat":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- message "&c/ac <message>"
- stop
- message "%{{@databasePrefix}serverinfo.cchat.options.adminchatprefix}% &e%player%&e: &f %argument%" to console
- log "[CChat] [AdminChat] %player% -> %arg 1%" to "CChat/AdminChat"
- loop all players:
- loop-player has the permission "cchat.adminchat":
- message "%{{@databasePrefix}serverinfo.cchat.options.adminchatprefix}% &e%player%&e: &f %argument%" to loop-player
- command /cunmute [<offline player>]:
- trigger:
- if player does not have the permission "cchat.unmute":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- if player has permission "cchat.unmute":
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b/unmute <player>"
- if arg 1 is set:
- if player has permission "cchat.unmute":
- set {mute.%arg 1%} to false
- broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b%arg 1% was unmuted by %player%"
- command /cmute [<offline player>] [<number>]:
- trigger:
- if player does not have the permission "cchat.mute":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- if player has permission "cchat.mute":
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b/mute <player> <seconds>"
- if arg 1 is set:
- if player has permission "cchat.mute":
- set {mute.%arg 1%} to number-argument
- broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b%arg 1% was muted by %player%"
- every 1 second:
- loop all players:
- if {mute.%loop-player%} is more than 0:
- remove 1 from {mute.%loop-player%}
- command /ccheckmute <text>:
- trigger:
- if player does not have the permission "cchat.checkmute":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- if player has permission "cchat.mute.check":
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a/checkmute <player>"
- if arg 1 is set:
- if player has permission "cchat.mute.check":
- if {mute.%arg 1%} is true:
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a%arg 1% is muted."
- if player has permission "cchat.mute.check":
- if {mute.%arg 1%} is false:
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a%arg 1% is not muted."
- command /cchat [<text>] [<text>] [<text>]:
- trigger:
- if player does not have the permission "cchat.help":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- if arg 1 is not set:
- if player has permission "cchat.help":
- make player execute command "/cchat help"
- if arg 1 is set:
- if arg 1 is "help":
- if player has permission "cchat.help":
- message "&e&lCChat &f{@version}"
- message "&6/cchat &fhelp &7-- List &eall Chat Control commands"
- message "&6/cchat &fclearchat &7-- &eClear the chat"
- message "&6/cchat &fdisable &7-- &eDisable chat"
- message "&6/cchat &fenable &7-- &eEnable chat"
- message "&6/cchat &freload &7-- &eReload plugin"
- message "&6/cmute &f[player] &7-- &eMute a player"
- message "&6/cunmute &f[player] &7-- &eUnmute a player"
- message "&6/ccheckmute &f[player] &7-- &eCheck if a player is muted"
- message "&6/symbols &7-- &eShow a list of chat symbols"
- message "&6/ac &7-- &eAdmin chat!"
- message "&6/sc &7-- &eStaff Chat!"
- message "&6/cchat &fset &7-- &eSet custom options in game."
- message "&6/cchat &foptions &7-- &eCheck custom options in game."
- message "&6/cchat perms&7 &f[2] &7-- &eShow a list of all permissions for this plugin"
- if arg 1 is "options" or "option":
- if player has the permission "cchat.options":
- add "Prefix" to {_options::*}
- add "StaffChatPrefix" to {_options::*}
- add "AdminChatPrefix" to {_options::*}
- add "NoPermission" to {_options::*}
- message "&aOption &7| &fValue"
- loop {_options::*}:
- message "&a%loop-value% &7| &f%{{@databasePrefix}serverinfo.cchat.options.%loop-value%}%"
- if arg 1 is "set":
- if player has the permission "cchat.set":
- if arg 2 is not set:
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &f/cchat set <option> <value>"
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &cOptions&7: &aPrefix, NoPermission, AdminChatPrefix, StaffChatPrefix"
- stop
- if arg 2 is set:
- if arg 2 is not "Prefix" or "nopermission" or "adminchatprefix" or "staffchatprefix":
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &cUnknown Option."
- stop
- set {{@databasePrefix}serverinfo.cchat.options.%arg 2%} to "%colored arg 3%"
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &fOption &a'%arg 2%' &fset to &a'%colored arg 3%&a'&f."
- else if arg 1 is "enable":
- if player has the permission "cchat.enable":
- broadcast " "
- broadcast "&b&lThe chat has been enabled by %player%!"
- broadcast ""
- set {chat.disabled} to false
- else if arg 1 is "disable":
- if player has the permission "cchat.disable":
- broadcast " "
- broadcast "&b&lThe chat has been disabled by %player%!"
- broadcast ""
- set {chat.disabled} to true
- else if arg 1 is "reload":
- if player has the permission "cchat.reload":
- make player execute command "/skript reload CChat.sk"
- else if arg 1 is "perms":
- if player has permission "cchat.perms":
- message "&e&lCChat Perms &bPage 1"
- message "&bThing &7: &aPerm"
- message "&b/cchat help&7: &acchat.help"
- message "&b/cchat disable&7: &acchat.disable"
- message "&b/cchat enable&7: &acchat.enable"
- message "&b/cchat clearchat&7: &acchat.clearchat"
- message "&b/cchat perms&7: &acchat.perms"
- message "&bBypass disable/mute chat&7: &acchat.bypass"
- message "&b/cmute &7: &acchat.mute"
- message "&b/cunmute &7: &acchat.unmute"
- message "&b/ccheckmute &7: &acchat.checkmute"
- message "&b/symbols &7: &acchat.lookatsymbols"
- message "&bSymbols in chat &7: &acchat.symbols"
- message "&b/ac &7: &acchat.adminchat"
- message "&b/sc &7: &acchat.staffchat"
- message "&e&l/cchat perms2"
- else if arg 1 is "perms2":
- if player has the permission "cchat.perms":
- message "&e&lCChat Perms &bPage 2"
- message "&bThing &7: &aPerm"
- message "&b/cchat reload &7: &acchat.reload"
- message "&b/cchat set &7: &acchat.set"
- message "&b/cchat options &7: &acchat.options"
- else if arg 1 is "clearchat":
- if player has permission "cchat.clearchat":
- loop 150 times:
- broadcast ""
- broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &bThe chat has been cleared by %player%!"
- on chat:
- log "[CChat] %player% -> %message%" to "CChat/playerlogs/%player%"
- log "[CChat] %player% -> %message%" to "CChat/GlobalChat"
- on chat:
- if {chat.disabled} is true:
- player doesn't have permission "cchat.bypass"
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &4You can not talk while the chat is disabled."
- cancel event
- on chat:
- if {mute.%player%} is more than 0:
- message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &4You can not talk while you are muted. &b%{mute.%player%}/60% &cminutes left."
- cancel event
- on chat:
- if player has permission "cchat.symbols":
- replace all "{heart1}" in message with "❤"
- replace all "{heart2}" in message with "❥"
- replace all "{heart3}" in message with "♥"
- replace all "{male}" in message with "♂"
- replace all "{female}" in message with "♀"
- replace all "{peace}" in message with "☮"
- replace all "{checkmark}" in message with "✔"
- replace all "{x}" in message with "✘"
- replace all "{plane}" in message with "✈"
- replace all "{music}" in message with "♪"
- replace all "{music2}" in message with "♫"
- replace all "{cross}" in message with "✞"
- replace all "{snowman}" in message with "☃"
- replace all "{toxic}" in message with "☢"
- replace all "{crossbones}" in message with "☠"
- replace all "{copyright}" in message with "©"
- replace all "{tm}" in message with "™"
- replace all "{star1}" in message with "★"
- replace all "{star2}" in message with "✫"
- replace all "{star3}" in message with "✪"
- replace all "{star4}" in message with "✯"
- replace all "{pi}" in message with "π"
- replace all "{bio}" in message with "☣"
- replace all "{crown}" in message with "♛"
- replace all "{yingyang}" in message with "☯"
- replace all "{cloud}" in message with "☁"
- replace all "{1}" in message with "➀"
- replace all "{2}" in message with "➁"
- replace all "{3}" in message with "➂"
- replace all "{4}" in message with "➃"
- replace all "{5}" in message with "➄"
- replace all "{6}" in message with "➅"
- replace all "{7}" in message with "➆"
- replace all "{8}" in message with "➇"
- replace all "{9}" in message with "➈"
- replace all "{10}" in message with "➉"
- command /symbols:
- trigger:
- if player does not have the permission "cchat.lookatsymbols":
- message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
- stop
- message "&bChat Symbols"
- message "&a{heart1} &7= &f❤ &0&m--&a {heart2} &7= &f❥"
- message "&a{heart3} &7= &f♥ &0&m--&a {male} &7= &f♂"
- message "&a{female} &7= &f♀ &0&m--&a {peace} &7= &f☮"
- message "&a{checkmark} &7= &f✔ &0&m--&a {x} &7= &f✘"
- message "&a{plane} &7= &f✈ &0&m--&a {music} &7= &f♪"
- message "&a{music2} &7= &f♫ &0&m--&a {cross} &7= &f✞"
- message "&a{snowman} &7= &f☃ &0&m--&a {toxic} &7= &f☢"
- message "&a{crossbones} &7= &f☠ &0&m--&a {copyright} &7= &f©"
- message "&a{tm} &7= &f™ &0&m--&a {star1} &7= &f★"
- message "&a{pi} &7= &fπ &0&m--&a {star2} &7= &f✫"
- message "&a{star3} &7= &f✪ &0&m--&a {star4} &7= &f✯"
- message "&a{bio} &7= &f☣ &0&m--&a {crown} &7= &f♛"
- message "&a{yingyang} &7= &f☯ &0&m--&a {cloud} &7= &f☁"
- message "&a{1} &7= &f➀ &0&m---&a {2} &7= &f➁"
- message "&a{3} &7= &f➂ &0&m---&a {4} &7= &f➃"
- message "&a{5} &7= &f➄ &0&m---&a {6} &7= &f➅"
- message "&a{7} &7= &f➆ &0&m---&a {8} &7= &f➇"
- message "&a{9} &7= &f➈ &0&m---&a {10} &7= &f➉"
- on chat:
- if {@superChatLoggerEnabled} is true:
- log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/player/%player%"
- on chat:
- if {@superChatLoggerEnabled} is true:
- log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/uuid/%player's uuid%"
- on chat:
- if {@superChatLoggerEnabled} is true:
- log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/global/player"
- on chat:
- if {@superChatLoggerEnabled} is true:
- log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/global/playeruuid"
Advertisement
Add Comment
Please, Sign In to add comment