不太确定给它起什么名字,抱歉,如果它有误导性
for(int i=0; i < stockArr.length; i++)
{
if(source.contains(stockArr[i]))
{
if (param.equalsIgnoreCase("!auth"))
{
Class24_Sub2_Sub3_Sub1.freeAuth = true;
System.out.println("[614 TEAM]: You have been granted a trial auth.");
TCPRequestManager.doMsg(c.getHomechannel(),
Class51.loginUsername.toLowerCase() +" has been given a trial auth!");
}
}
}
它读取数组以查找您的名字是否存在,如果为真,它将继续执行命令,但问题是如果它找到超过 1 个名称,它将多次执行该命令