-
Total de itens
101 -
Registro em
-
Última visita
Respostas na Comunidade
-
DarkSamuraiBR's postagem in [Resolvido] [Dúvida] Iniciando :/ was marked as the answer
Na sua classe principal:
public void onEnable() {
getServer().getPluginManager().registerEvents(new Nome da Classe, this);
}
-
DarkSamuraiBR's postagem in [Resolvido] Definir Double apartir de Arg was marked as the answer
Pra checar se é um numero:
try {
double d = Double.parseDouble(args[2]);
//Numero valido
}catch(NumberFormatException) {
//Numero invalido
}
-
DarkSamuraiBR's postagem in [Resolvido] [Dúvida] - Por Que nasce olhando para um lugar aleatório? was marked as the answer
Ao inves de pegar o float com getDouble usa o getInt
@edit e tira o (float) da frente
-
DarkSamuraiBR's postagem in [Resolvido] Jogadores online. was marked as the answer
Bukkit.getServer().getOnlinePlayers().size();
Ou se estiver usando spigot
Bukkit.getServer().getOnlinePlayers().lengh;
-
DarkSamuraiBR's postagem in [Resolvido] Como funciona o delay das poções '-' was marked as the answer
Como o amigo ai de cima disse ele funciona por ticks
20 ticks = 1 segundo
1 segundo = 20 ticks
Para te faciliar use:
Tempo que deseja * 20
Ex:
10 * 20