【发布时间】:2012-05-13 03:13:53
【问题描述】:
有人知道如何在 PircBots 中使用它吗? http://www.jibble.org/javadocs/pircbot/index.html 我只需要获取用户主机名并禁止他们。感谢阅读!
if (cmd.equalsIgnoreCase("ban")) {
if (command[1] != null && command[2] != null) {
//Command[1] is the users name.
//Command[2] is the reason.
//how do i make this ban someone?
}
}
【问题讨论】:
-
我读过,我只是不知道如何解析主机名。 @吉姆加里森