function On_ServerInit()
{
requestConfig();
}
function requestConfig()
{
Data.AddTableValue("ChatCooldown", "COOLDOWN", Data.GetConfigValue("ChatCooldown", "Settings", "Cooldown"));
}
function On_Chat(Player, ChatMsg){
var cooldown_on = DataStore.Get("ChatCooldown", "Cooldown");
if (cooldown_on == "on")
{
var timeleft = getTimeRemaining(Player);
if (timeleft > 0)// && Player.Admin == false)
{
ChatMsg.NewText = "";
Player.Notice("请稍等发言!");
Player.Message("[color red]等待 " + timeleft + " 秒后再次发言!");
}
else
{
//Player.Message("timeleft: " + timeleft);
var time &#