Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options: # YOU CAN EDIT THESE
Prefix: &b&l[CM]&6
sentLink: Sorry, you cannot send links.
joinMessage: [+] # Your server join message. Example: when a player joins and the server says: "[+] Notch", all you would type here is "[+]" NOTE: You can add color codes!
leaveMessage: [+] # Your server leave message. Example: when a player leaves and the server says: "[-] Notch", all you would type here is "[-]" NOTE: You can add color codes!
chatMuted: Sorry, the chat is currently muted.
command /chatmanager [<text>] [<text>] [<text>]:
aliases: cm
permission: cm.use
trigger:
if player has permission "cm.use":
if arg-1 is not set:
send ""
send "&3Chat Manager: &7By AdamMcGrogan."
send "&3For more skripts: &7visit https://spigotmc.org/wiki/adam"
send ""
send "&7> &3Version 1.2"
send "&7> &3[] = optional"
send "&7> &3<> = required"
send ""
send "&7> &3/cm mute [reason] &7Mutes chat"
send "&7> &3/cm unmute [reason] &7Unmutes chat"
send "&7> &3/cm clear [reason] &7Clears chat"
send "&7> &3/cm fake <join/leave> <name> &7Fake join/leave messages."
send ""
else if arg-1 is "mute":
if {cm.mute} is false:
if arg-2 is set:
set {cm.mute} to true
send "{@Prefix} Chat is now muted."
broadcast "{@Prefix} The chat has been muted for %arg-2%."
else:
set {cm.mute} to true
send "{@Prefix} Chat is now muted."
broadcast "{@Prefix} The chat has been muted."
else:
send "{@Prefix} The chat is already muted."
else if arg-1 is "unmute":
if {cm.mute} is true:
if arg-2 is set:
set {cm.mute} to false
send "{@Prefix} Chat has now been unmuted."
broadcast "{@Prefix} Chat has now been unmuted for %arg-2%."
else:
set {cm.mute} to false
send "{@Prefix} Chat has now been unmuted."
broadcast "{@Prefix} Chat has now been unmuted."
else:
send "{@Prefix} The chat is not muted."
else if arg-1 is "clear":
if arg-2 is set:
loop 250 times:
broadcast ""
broadcast "{@Prefix} The chat has been cleared for %arg-2%."
else:
loop 250 times:
broadcast ""
broadcast "{@Prefix} The chat has been cleared."
else if arg-1 is "fake":
if arg-2 is "join":
if arg-3 is set:
broadcast "{@joinMessage} %player%"
else if arg-2 is "leave":
if arg-3 is set:
broadcast "{@leaveMessage} %player%"
else:
send "{@Prefix} You need to enter a player name."
else:
send "{@Prefix} Please enter either ""join"" or ""leave""."
else:
send "&b&l[CM]&6 You do not have the permission."
on chat:
if {cm.mute} is true:
if player has permission "cm.bypass":
stop
else:
cancel event
send "{@Prefix} {@chatMuted}"
if message contains "https://" or "www." or "http://":
if player has permission "cm.bypass":
stop
else:
cancel event
send "{@Prefix} {@sentLink}"
on load:
if {cm.mute} is not set:
set {cm.mute} to false