gm 跑马灯
parent
5545dec693
commit
4481b5a8c0
|
|
@ -59,4 +59,5 @@ public interface Global {
|
|||
int LUCKY_LUCK = 1; //吉运
|
||||
int DILIGENT = 2; //勤勉
|
||||
int LUCKCAT = 3; //招财猫
|
||||
int GMMSG = 4; //gm
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue