家园建筑gm

back_recharge
duhui 2022-01-10 18:18:27 +08:00
parent 69166c0950
commit f0a19957b2
1 changed files with 25 additions and 0 deletions

View File

@ -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;
}
}