gm 跑马灯

back_recharge
zhangshanxue 2019-09-11 10:10:01 +08:00
parent 5545dec693
commit 4481b5a8c0
2 changed files with 21 additions and 0 deletions

View File

@ -59,4 +59,5 @@ public interface Global {
int LUCKY_LUCK = 1; //吉运
int DILIGENT = 2; //勤勉
int LUCKCAT = 3; //招财猫
int GMMSG = 4; //gm
}

View File

@ -0,0 +1,20 @@
package com.ljsd.jieling.kefu;
import com.ljsd.jieling.chat.logic.ChatLogic;
import com.ljsd.jieling.db.redis.RedisKey;
import com.ljsd.jieling.db.redis.RedisUtil;
import com.ljsd.jieling.globals.Global;
import com.ljsd.jieling.network.server.ProtocolsManager;
public class Cmd_sendmsg extends GmAbstract {
@Override
public boolean exec(String[] args) throws Exception {
if (args.length != 1) {
return false;
}
String content = args[0];
ChatLogic.getInstance().sendSysChatMessage(content, Global.GMMSG, 0, 0, 0, 0, 0, 0);
return true;
}
}