家园建筑gm
parent
69166c0950
commit
f0a19957b2
|
@ -0,0 +1,25 @@
|
|||
package com.ljsd.jieling.kefu;
|
||||
|
||||
import com.ljsd.jieling.logic.dao.ArchitectureInfo;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import util.TimeUtils;
|
||||
/**
|
||||
* @Author hj
|
||||
* @Date 2021/10/28 17:11:17
|
||||
* @Description: 家园建筑等级 命令: homelevel 建筑类型id#建筑等级id#时间戳/秒(可以为空)
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class Cmd_homelevel extends GmRoleAbstract{
|
||||
@Override
|
||||
public boolean exec(String[] args) throws Exception {
|
||||
if (args.length >= 2){
|
||||
User user = getUser();
|
||||
int id = Integer.parseInt(args[0]);
|
||||
int level = Integer.parseInt(args[1]);
|
||||
int time = args.length > 2?Integer.parseInt(args[2]):TimeUtils.nowInt();
|
||||
ArchitectureInfo info = new ArchitectureInfo(level, time, 0);
|
||||
user.getPlayerInfoManager().putArchitectureInfo(id,info);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue