Ir para conteúdo

LeoT

Membros
  • Total de itens

    345
  • Registro em

  • Última visita

Respostas na Comunidade

  1. LeoT's postagem in [JAVA] StringList > Como fazer? was marked as the answer   
    for (String msg : getConfig().getStringList("Mensagens")){ Bukkit.broadcastMessage(msg.replace("&", "§")); }  
  2. LeoT's postagem in [Pedido] Plugin de minerios derretidos was marked as the answer   
    AutoSmelt
  3. LeoT's postagem in Que Variável e essa? was marked as the answer   
    Usar o google as vezes ajuda...
    Provavelmente seja {ezrankspro_progressbar}
  4. LeoT's postagem in Hospedagem para SITE boa e barata?! was marked as the answer   
    Eu uso essa: Clique, eles aceitam paypal e eu nunca tive problemas!
  5. LeoT's postagem in Arena Chain was marked as the answer   
    F_Arena
  6. LeoT's postagem in [Bukkit] getMoneyFormat was marked as the answer   
    Tirei isso de um plugin um tempo atrás... Nunca testei mas deve funcionar:
    public static String convertMoney(double paramDouble) { String str1; int j; String str2; if (paramDouble >= 1.0E15D) { str1 = String.format("%.2f", new Object[] { Double.valueOf(paramDouble / 1.0E15D) }); j = str1.indexOf("."); str2 = str1.substring(j + 1); if (str2.endsWith("0")) { if (str2.startsWith("0")) { str1 = str1.substring(0, str1.length() - 3); } else { str1 = str1.substring(0, str1.length() - 1); } } return str1 + "Q"; } if (paramDouble >= 1.0E12D) { str1 = String.format("%.2f", new Object[] { Double.valueOf(paramDouble / 1.0E12D) }); j = str1.indexOf("."); str2 = str1.substring(j + 1); if (str2.endsWith("0")) { if (str2.startsWith("0")) { str1 = str1.substring(0, str1.length() - 3); } else { str1 = str1.substring(0, str1.length() - 1); } } return str1 + "T"; } if (paramDouble >= 1.0E9D) { str1 = String.format("%.2f", new Object[] { Double.valueOf(paramDouble / 1.0E9D) }); j = str1.indexOf("."); str2 = str1.substring(j + 1); if (str2.endsWith("0")) { if (str2.startsWith("0")) { str1 = str1.substring(0, str1.length() - 3); } else { str1 = str1.substring(0, str1.length() - 1); } } return str1 + "B"; } if (paramDouble >= 1000000.0D) { str1 = String.format("%.2f", new Object[] { Double.valueOf(paramDouble / 1000000.0D) }); j = str1.indexOf("."); str2 = str1.substring(j + 1); if (str2.endsWith("0")) { if (str2.startsWith("0")) { str1 = str1.substring(0, str1.length() - 3); } else { str1 = str1.substring(0, str1.length() - 1); } } return str1 + "M"; } if ((paramDouble >= 1000.0D)) { str1 = String.format("%.2f", new Object[] { Double.valueOf(paramDouble / 1000.0D) }); j = str1.indexOf("."); str2 = str1.substring(j + 1); if (str2.endsWith("0")) { if (str2.startsWith("0")) { str1 = str1.substring(0, str1.length() - 3); } else { str1 = str1.substring(0, str1.length() - 1); } } return str1 + "k"; } int i = (int) paramDouble; return String.valueOf(i); } Pra usar é só usar:
    (Vault) -> convertMoney(Main.money.getBalance(p.getName()); 
  7. LeoT's postagem in Pedido - Plugin de efeitos was marked as the answer   
    Download: Clique
    Permissão: efeitos.ver
     
    Imagem:

     
    Cobrar num plugin desse é ridículo -.-'
  8. LeoT's postagem in como eu faço isso? was marked as the answer   
    Seu replace está de forma errada!
    slore.add(lore.replace("&", "§").replace("{valor}", NumberFormat.getInstance().format(valor)).replace("{player}", p.getName()));
  9. LeoT's postagem in Plugin de RANKS was marked as the answer   
    Tutorial
  10. LeoT's postagem in [Pedido] - Plugin para bloquear noite e chuva was marked as the answer   
    AlwaysDay
  11. LeoT's postagem in Multiplos arquivos de configuração was marked as the answer   
    Pra criar o arquivo você pode colocar no onEnable e pra carregar/pegar uma informação você usa só quando precisar ou cria um método direto!
    https://hastebin.com/eciqiyihig.cs
  12. LeoT's postagem in Plugin em Gui was marked as the answer   
    left_click_commands: - '[player] COMMAND' - '[console] COMMAND' - '[commandevent] COMMAND' - '[message] TEXT' - '[openguimenu] MenuName' - '[connect] ServerName' - '[json] {"text":"message"}' - '[refresh]' - '[broadcastsound] SOUND' - '[sound] SOUND' - '[takemoney] #' - '[close]' right_click_commands: - '[player] COMMAND' - '[console] COMMAND' - '[commandevent] COMMAND' - '[message] TEXT' - '[openguimenu] MenuName' - '[connect] ServerName' - '[json] {"text":"message"}' - '[refresh]' - '[broadcastsound] SOUND' - '[sound] SOUND' - '[takemoney] #' - '[close]' Dá uma olhada aqui: Clique
  13. LeoT's postagem in Dúvida Bukkit was marked as the answer   
    Tenta isso:
    Bukkit.getServer().getOnlinePlayers().size()
  14. LeoT's postagem in Como executar um evento ao clicando no villager was marked as the answer   
    Só com plugin á parte, se você quiser fazer igual o lobby do sky faz o seguinte:
     Nome do villager com alguma cor aleátoria, exemplo: '§1'
     Depois cria os hologramas com o HolograpichDisplays e move eles pra cima do villager
     Nos eventos do villager cheque se ele tem o customName como '§1'
  15. LeoT's postagem in [Stack] Bloquear item de stacar was marked as the answer   
    Acho que foi o Alex que me passou esse código... Eu usei no F_Maquinas, agora tô fazendo de outro jeito!
    private static final Random RANDOM; private static final char[] APPEND; public static String randomString() { APPEND[1] = (char) (48 + RANDOM.nextInt(10)); APPEND[3] = (char) (48 + RANDOM.nextInt(10)); APPEND[5] = (char) (48 + RANDOM.nextInt(10)); APPEND[7] = (char) (48 + RANDOM.nextInt(10)); return new String(APPEND); } static { RANDOM = new Random(); APPEND = new char[] { '§', '\0', '§', '\0', '§', '\0', '§', '\0' }; } //Pra usar você coloca no nome do item 'randomString()'
  16. LeoT's postagem in [Pedido] Plugin de Join&Leave was marked as the answer   
    CustomJoinMessage
  17. LeoT's postagem in [DUVIDA] Pegar item / quantidade da config & remover quando executar um cmd was marked as the answer   
    Ajudei via skype, pode fechar o tópico?





    Sua dúvida foi marcada como [Resolvido] e movido à área de dúvidas resolvidas.


    Atenciosamente,
    Gamer's Board
  18. LeoT's postagem in [Pedido] Plugin de Caixas (Crates) was marked as the answer   
    CratesPlus
    DMysteryBox
  19. LeoT's postagem in [Duvida] evento para command send was marked as the answer   
    Não entendi muito bem, mas da uma olhada aí: Clique
  20. LeoT's postagem in Plugin / + Shift Bloqueado (URGENTE) was marked as the answer   
    Não seria / + tab?
     
    Você pode desativar o auto-complet na config do spigot(Se utilizar spigot)
     
    -> Abra o arquivo spigot.yml
    -> Procure por 'tab-complete'
    -> Altere o valor para -1
  21. LeoT's postagem in [AJUDA] Plugin que estou fazendo! was marked as the answer   
    Ele deve estar dando conflito com outro plugin (Provavelmente Essentials)
  22. LeoT's postagem in Proteger meu plugin was marked as the answer   
    Pra proteger o código você pode usar o Allatori
    https://www.youtube.com/watch?v=nNdG3vfjuxA(Vídeo de como obfuscar/proteger)
  23. LeoT's postagem in [Pedido] Plugin de /vender was marked as the answer   
    Dá uma olhada nesse, http://gamersboard.com.br/topic/43309-kayarsell-venda-de-itens-com-vender/
×
×
  • Criar Novo...