Comando:
if ((args.length == 1) && (glad.equals("iniciar"))) {
if (!m.getPerm(kw, "Permissoes.Iniciar")) {
kw.sendMessage(m.getFile().getReplaced("Sem_Permissao"));
return true;
}
if ((m.getAberto()) || (m.getOcorrendo())) {
kw.sendMessage(m.getFile().getReplaced("Aberto"));
return true;
}
if (m.getFile().getLocal("Saida")) {
kw.sendMessage(m.getFile().getReplaced("Setar.Saida"));
return true;
}
if (m.getFile().getLocal("Lobby")) {
kw.sendMessage(m.getFile().getReplaced("Setar.Lobby"));
return true;
}
if (m.getFile().getLocal("Arena")) {
kw.sendMessage(m.getFile().getReplaced("Setar.Arena"));
return true;
}
m.getIniciar();
}
Código:
public void getIniciar() {
setAvisos(getInt("Avisos.Quantos"));
}
private void setAvisos(final int x) {
int tempo = getInt("Avisos.Tempo");
if (x != 0) {
setOcorrendo(false);
setAberto(true);
for (String msg : this.msg.getList("Iniciando")) {
s.broadcastMessage(this.msg.replaced(msg).replace("{valor}", Integer.toString(getInt("Valor")))
.replace("{tempo}", Integer.toString(tempo * x)));
}
bs.runTaskLater(pl, new Runnable() {
@Override
public void run() {
setAvisos(-1);
}
}, tempo * 20L);
} else {
s.broadcastMessage("FUNFOU");
}
}
Não sei o que fazer ;-; estou perdido ;-;