ChatLCAndCC.sk

Created by Unknown

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.

#
#
#█▀▄▀█ █▀▀█ █▀▀▄ █▀▀   █▀▀▄ █░░█   █▀▀ █▀▀█ █▀▀█ █▀▀ █▀▀ █▀▀█
#█░▀░█ █▄▄█ █░░█ █▀▀   █▀▀▄ █▄▄█   ▀▀█ █░░█ █▄▄▀ █▀▀ █░░ █░░█
#▀░░░▀ ▀░░▀ ▀▀▀░ ▀▀▀   ▀▀▀░ ▄▄▄█   ▀▀▀ █▀▀▀ ▀░▀▀ ▀▀▀ ▀▀▀ ▀▀▀▀
#

variables:
    {chatlockdown} = false
options:
	prefix: &8[&b&lYour&f&lServer&8]

on chat:
    if message contains "https://" or "http://":
        if player does not have the permission "spreco.custom.semdl":
            cancel event
            send "{@prefix} &cThe message couldn't be sent!"
            make console execute command "warn %player% Sending Links"
    if {chatlockdown} is true:
        if player does not have permission "spreco.lockdown.talk":
            cancel event
            send "{@prefix} &cYou can't talk while the chat is locked!"

command /lc [<text>] [<text>]:
    aliases: /lockchat
    permission: spreco.custom.lockchat
    permission message: "{@prefix} &cNo permission. &8[&aspreco.custom.lockchat%8]!"
    trigger:
        if arg 1 is "allow":
            if arg 2 is not set:
                send "{@prefix} &cPlease specify a player!"
            else:
                make console execute command "/manuaddp %arg 2% spreco.lockdown.talk"
                send "{@prefix} &aPlayer %arg 2% now can talk while the chat is locked"
        else if arg 1 is "disallow":
            if arg 2 is not set:
                send "{@prefix} &cPlease specify a player!"
            else:
                make console execute command "/manudelp %arg 2% spreco.lockdown.talk"
                send "{@prefix} &aPlayer %arg 2% can't talk anymore while the chat is locked"
        else if arg 1 is not set:
            if {chatlockdown} is false:
                set {chatlockdown} to true
                broadcast ""
                broadcast "&8&m--------------+-&r {@prefix} &8&m-+---------------"
                broadcast "&b "	
                broadcast "&b "		
                broadcast "&c The chat got &4&lLOCKED &cby {@prefix} &cStaff! "	
                broadcast "&b "		
                broadcast "&b "		
                broadcast "&8&m---------------&8&m-------------&8&m---------------"					
            else if {chatlockdown} is true:
                set {chatlockdown} to false
                broadcast "&8&m--------------+-&r {@prefix} &8&m-+---------------"
                broadcast "&b "	
                broadcast "&b "		
                broadcast "&c The chat got &a&lUNLOCKED &cby {@prefix} &cStaff! "	
                broadcast "&b "		
                broadcast "&b "		
                broadcast "&8&m---------------&8&m-------------&8&m---------------"	
        else:
            send "{@prefix} &cUnknown argument"
			
command /chatclear:
	aliases: /cc
	permission: spreco.custom.cc
	permission message: "{@prefix} &cNemas permisiju. &8[&aspreco.custom.cc&8]"
	trigger:
		loop 250 times:
			broadcast ""
		broadcast "&8&m--------------+-&r {@prefix} &8&m-+---------------"
		broadcast "&b "	
		broadcast "&b "		
		broadcast "&c The chat was cleared by {@prefix} &cStaff! "	
		broadcast "&b "		
		broadcast "&b "		
		broadcast "&8&m---------------&8&m-------------&8&m---------------"		

		
on join:
	loop 250 times:
	message ""
	message ""
	broadcast "&8[&a+&8] &7%player%"
	set join message to ""
	stop
on quit:
	broadcast "&8[&c-&8] &7%player%"
	set quit message to ""
	stop