Ir para conteúdo

Solitario

Membros
  • Total de itens

    304
  • Registro em

  • Última visita

Respostas na Comunidade

  1. Solitario's postagem in Dúvida - Instalação java CentOS 6.5 was marked as the answer   
    Tenta: 
    sudo yum install java-1.8.0-openjdk
  2. Solitario's postagem in [DEV] Alguém pode me ajudar (Conexões locais e externas) was marked as the answer   
    Obs: foi resolvido só tinha uma coisa errada mesmo ... setOnline(true) estava faltando ... 
  3. Solitario's postagem in [Dúvida] Como dar replace nisso? was marked as the answer   
    List<String> Lista = getConfig().getStringList("Category1.lore"); ArrayList<String> Lore = new ArrayList<String>(); for (String lores : Lista){ Lore.add(lores.replace("&", "§")); } item.setLore(Lore); @Edit
    Acho que você não pode colocar replace em uma list acho que tem que ser string por string
  4. Solitario's postagem in [Bukkit code/Plugin] Como coloca imagens tipo em nos frame (Fazem que nem um muro) was marked as the answer   
    -----------------------------------------------

    Resolvido ... code acima

    -----------------------------------------------

  5. Solitario's postagem in InventoryClickEvent, como verifico se o item é cabeça de player? was marked as the answer   
    Também não deu certo ;-;
     
     
    Bom ... consegui resolver verificando o nome do item ver se continha no hashmap '-' deu certo pelo menos
  6. Solitario's postagem in [Bukkit Code][Duvida] BungeeCord/Pingner was marked as the answer   
    Resolvido ...
     
    Quem quiser a api:
    public static String getPlayers(String ip, String port) { try (Socket sock = new Socket(ip, Integer.parseInt(port)); DataOutputStream out = new DataOutputStream(sock.getOutputStream()); DataInputStream in = new DataInputStream(sock.getInputStream())) { out.write(0xFE); int b; StringBuffer str = new StringBuffer(); while ((b = in.read()) != -1) { if (b != 0 && b > 16 && b != 255 && b != 23 && b != 24) str.append((char) b); } return str.toString().split("§")[10] + "/" + str.toString().split("§")[11]; } catch (IOException ex) { return "§cOffline"; } } OBS: ele tem um serio problema com algums servers (Creio que sejá devido ao motd só ir mudando o [10] e [11])
  7. Solitario's postagem in [Bukkit Code] player.performcommand não funcional com preprocesscommand ? was marked as the answer   
    Resolvido ... em vez de usar o comando coloquei direto a teleportar
×
×
  • Criar Novo...