-
Total de itens
502 -
Registro em
-
Última visita
Respostas na Comunidade
-
jetta's postagem in [Duvida][Java] Geração de mundo was marked as the answer
você já tem o mundo gerado? se sim vai precisar usar o evento ChunkLoadEvent, se não você pode criar um gerador de mundos customizados (aqui tem um tutorial de como fazer isso).
-
jetta's postagem in [Resolvido] List<String> was marked as the answer
public String[] listToArray(String section) {
String[] result = new String[getConfig().getStringList(section).size()];
for (int i = 0; i < getConfig().getStringList(section).size(); i++)
result = ChatColor.translateAlternateColors('&', getConfig().getStringList(section).get(i));
return result;
}
-
jetta's postagem in [Resolvido] Como faço ? was marked as the answer
https://www.youtube.com/watch?v=8-yZugFHuJ0
ps: as vezes pesquisar no google é bom
-
jetta's postagem in [Resolvido] Como adicionar titles em eventos ? was marked as the answer
o simpleclans já tem um evento de criar e excluir clan, não precisa criar outro
-
jetta's postagem in [Resolvido] Duvida com Files e Inventory was marked as the answer
http://pastebin.com/LW1v4bNY
-
jetta's postagem in [Resolvido] Click was marked as the answer
if (event.getClick() == ClickType.RIGHT) {
-
jetta's postagem in [Resolvido] Remover algo da config was marked as the answer
vc ta salvando a config?
-
jetta's postagem in [Resolvido] Argumentos was marked as the answer
pra checar se é um número:
double value; if(args[0].matches("[0-9]+")){ value = Double.parseDouble(args[0]); } -
jetta's postagem in [Resolvido] Reload em config was marked as the answer
tópico movido para área correta
@topic
tenta assim:
File file = new File(Main.get().getDataFolder(), "config.yml"); FileConfiguration config = YamlConfiguration.loadConfiguration(file); try{ config.save(file); config.load(file); }catch(Exception ex){ ex.printStackTrace(); } -
jetta's postagem in [Resolvido] [DuvidaJava] Pegar Algo da stringlist randomicamente was marked as the answer
List<String> array = getConfig().getStringList(path);
-
jetta's postagem in [Entregue] [PEDIDO] Sorteio vip was marked as the answer
http://www.mediafire.com/download/d63hm8s8m9qiohh/SorteioVIP.jar
permissao para iniciar e parar o evento: sorteiovip.admin
-
jetta's postagem in [Resolvido] Perder Comandos Player was marked as the answer
faz um comando que adiciona um player numa array, e faz outro que tira a parte de bloquear de executar o comando é assim:
@EventHandler public void onCmd(PlayerCommandPreprocessEvent e){ if(array.contains(e.getPlayer().getName())){ if(e.getMessage().startsWith("/")){ e.setCancelled(true); } } } -
jetta's postagem in [Resolvido] Dúvidas was marked as the answer
PlayerPreLoginEvent
if(condiçao){ }else if(condiçao){ }else if(condiçao){ -
jetta's postagem in [Entregue] [PEDIDO] SISTEMA DE VOTAÇÃO PARA STAFF was marked as the answer
http://www.mediafire.com/download/ts479yq97w64aqv/JVotoStaff.jar
testei aqui e ta funcionando certinho
-
jetta's postagem in [Resolvido] Clique para acessar este tópico! was marked as the answer
pode criar uma array e colocar ele na primeira vez que fez a açao tipo:
List<Player> confirm = new ArrayList<Player>(); @EventHandler public void onPlace(BlockPlaceEvent e){ if(!confirm.contains(e.getPlayer())){ confirm.add(e.getPlayer()); e.setCancelled(true); e.getPlayer().sendMessage("Você tem certeza que quer colocar o bloco?"); }else{ confirm.remove(e.getPlayer()); e.getPlayer().sendMessage("Bloco colocado com sucesso!"); } } -
jetta's postagem in [Entregue] [PEDIDO]Entrar em PvP was marked as the answer
me passa o ip do server
-
jetta's postagem in [Entregue] PLUGIN DE COMPRA DE VIP POR MONEY EM GUI was marked as the answer
Esta aí:
http://www.4shared.com/file/oFnCoOhKba/JComprarVIP__2_.html