-
Total de itens
459 -
Registro em
-
Última visita
Respostas na Comunidade
-
Viiict0r's postagem in [Dúvida] Como pegar o money top do servidor? was marked as the answer
SELECT user,money FROM tabela ORDER BY money DESC LIMIT 1; Só fazer uma query no sql e pegar o retorno.
-
Viiict0r's postagem in Organizar Tags no Tab por ordem escolhida na config was marked as the answer
Baixe a nova versão no site: www.viiict0r.com
-
Viiict0r's postagem in [duvida][dev] como criar uma pasta was marked as the answer
Para criar outros tipos de configuração existem algumas classes uteis para isso, dê uma olhada aqui: https://www.spigotmc.org/threads/class-simple-custom-configs.51124/
Agora para criar uma pasta diferenciada, use:
File pasta = new File("plugins/MeuPlugin/NomePasta"); if (!pasta.exists()) { pasta.mkdirs(); } -
Viiict0r's postagem in Como atualizar scoreboard was marked as the answer
private String getMoney(Player p) { DecimalFormat numberFormat = new DecimalFormat("###,###.##"); String d = numberFormat.format(econ.getBalance(p)); if (d.equalsIgnoreCase(".00")) { d = "0.0"; } return d.replace(".", ","); } -
Viiict0r's postagem in Ajuda [DEV] was marked as the answer
Você esqueceu de colocar um "." no getConfigurationSection("Homes" + p.getName()) --> "Homes." + p.getName()
-
Viiict0r's postagem in Por que não funciona esse @player was marked as the answer
Bukkit.broadcastMessage(Main.instance.getConfig().getString("EntrouAreaGlobal").replace("&", "§").replace("@prefixo", String.valueOf(prefixo)).replace("@player", p.getName())); Teste este
-
Viiict0r's postagem in [PROTOCOLLIB] MOTD personalizada. was marked as the answer
@Override public void onEnable() { ProtocolLibrary.getProtocolManager().addPacketListener( // I mark my listener as async, as I don't use the Bukkit API. Please note that // your listener may be executed on the main thread regardless. new PacketAdapter(this, ListenerPriority.NORMAL, Arrays.asList(PacketType.Status.Server.OUT_SERVER_INFO), ListenerOptions.ASYNC) { @Override public void onPacketSending(PacketEvent event) { handlePing(event.getPacket().getServerPings().read(0)); } }); } private void handlePing(WrappedServerPing ping) { ping.setPlayers(Arrays.asList( new WrappedGameProfile("id1", ChatColor.RED + "Hello. " + ChatColor.RESET + "This is line number one."), new WrappedGameProfile("id2", "Hello. This is line number two."), new WrappedGameProfile("id3", "Hello. This is line number three.") )); }
--> https://bukkit.org/threads/lib-1-7-9-protocollib-3-4-0-safely-and-easily-modify-sent-and-recieved-packets.101035/page-8#post-2083928
-
Viiict0r's postagem in [Duvida] Adicionar Encantamentos em uma lista was marked as the answer
ItemStack item = p.getItemInHand();
ItemMeta meta = item.getItemMeta();
meta.addEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 4, true);
item.setItemMeta(meta);
-
Viiict0r's postagem in Mudando a cor do nome que fica acima da cabeça do jogador was marked as the answer
https://bukkit.org/threads/using-teams-to-color-player-names.420577/
-
Viiict0r's postagem in Plugin:Scoreboard ! Pronta was marked as the answer
Talvez possa ajudar...
https://www.youtube.com/watch?v=qAOQIYlUq0o
-
Viiict0r's postagem in [Duvida] menu Gui was marked as the answer
String[] enchantLevels = this.config.getEnchantLevels(ench); List<String> levels = new ArrayList(); for (String enchantLevel : enchantLevels) { enchantLevel = enchantLevel.substring(5); int level = Integer.parseInt(enchantLevel); if (this.permsys.hasEnchantPermission(p, ench, level)) { ItemStack tmp = item.clone(); ItemMeta meta = tmp.getItemMeta(); List<String> lores = new ArrayList(); lores.add(ChatColor.GOLD + "Nivel: " + level); if (!(this.config.getEconomy() instanceof NullPayment)) { int price = this.config.getPrice(ench, level); lores.add(ChatColor.GREEN + "Preço: " + price); } String level_name = ""; if (level == 1) name = "Novato"; if (level == 2) name = "Básico"; // ... lores.add(ChatColor.GOLD + "Rank necessario: " + level_name); meta.setLore(lores); tmp.setItemMeta(meta); itemlist.add(tmp); levels.add(enchantLevel); } } -
Viiict0r's postagem in [Resolvido] [Ajuda] Erro UnsafeEnchantments was marked as the answer
Adicione o encantamento com ItemMeta:
ItemStack item = new ItemStack(Material.DIAMOND_SWORD); ItemMeta meta = item.getItemMeta(); meta.addEnchantment(Enchantment.DAMAGE_ALL, 10, true); item.setItemMeta(meta); Espero ter ajudado...
-
Viiict0r's postagem in [Entregue] Plugin de Vida emcima dacabeça was marked as the answer
https://www.youtube.com/watch?v=_HiJSGZO5m0
-
Viiict0r's postagem in [Resolvido] Java Obfuscator was marked as the answer
Allatori, não sei se é assim que se escreve... eu uso ele e recomendo!
http://prntscr.com/agvg5b
-
Viiict0r's postagem in [Entregue] PEDIDO COMBATLOG SIMPLES was marked as the answer
Resolvido por skype...
-
Viiict0r's postagem in [Entregue] [COMPRO] Compro plugin de Eventos para servidor 1.7.x was marked as the answer
http://gamersboard.com.br/topic/15817-premium-viinvas%C3%A3ofantasma-evento-invas%C3%A3o-de-fantasmas/?view=getnewpostDa uma olhadinha ai...
-
Viiict0r's postagem in [Resolvido] Qual canal bom para aprender BukkitAPI? was marked as the answer
Eduard - Pesquisa no youtube Eduard bukkit aprendi muito la boa sorte