Ir para conteúdo

BigWriter

Membros
  • Total de itens

    242
  • Registro em

  • Última visita

Tudo que BigWriter postou

  1. Use um saveDefaultConfig(); no onEnable() pra gerar a config. @Topic Parabéns pelo plugin.
  2. BigWriter

    New Plugins ?

    Galera estou com bastante tempo livre ultimamente, estou querendo fazer uns plugins ai pra vender ou até mesmo postar free dependendo do trampo que for dar, to precisando de algumas ideias (Meio q inovadoras), uns plugins que ainda não tenha no fórum... Qualquer ideia podem lançar ai que irei analisar e tentar estar desenvolvendo para vocês. Caso precise de algo particular me add skype ou manda mp. Skype: LightShot .
  3. Bom, estou dando uma editada no simpleclans até ai sem nenhum error no console etc, estou no caso querendo fazer Líder e Co-Líder eu consegui colocar o nome do jogador no clan profile etc. só que quando eu reinicio o servidor eu perco o líder e o co-líder o clan simplesmente fica criado mais sem os 2, acho que eu fiz errado alguma coisa quando inicia a db, porque quando eu promovo e crio o clan n da problema apenas quando vou reiniciar... caso alguem entenda o código está ai. public void initiateDB() { if (this.plugin.getSettingsManager().isUseMysql()) { this.core = new MySQLCore(this.plugin.getSettingsManager().getHost(), this.plugin.getSettingsManager().getDatabase(), this.plugin.getSettingsManager().getUsername(), this.plugin.getSettingsManager().getPassword()); if (this.core.checkConnection()) { SimpleClans.log("MYSQL CONECTOU"); if (!this.core.existsTable("sc_clans")) { SimpleClans.log("Creating table: sc_clans", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_clans` ( `id` bigint(20) NOT NULL auto_increment, `verified` tinyint(1) default '0', `tag` varchar(25) NOT NULL, `color_tag` varchar(25) NOT NULL, `name` varchar(100) NOT NULL, `friendly_fire` tinyint(1) default '0', `founded` bigint NOT NULL, `last_used` bigint NOT NULL, `packed_bb` mediumtext NOT NULL, `flags` text NOT NULL, `balance` double(64,2), PRIMARY KEY (`id`), UNIQUE KEY `uq_simpleclans_1` (`tag`));"; this.core.execute(query); } if (!this.core.existsTable("sc_players")) { SimpleClans.log("Creating table: sc_players", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_players` ( `id` bigint(20) NOT NULL auto_increment, `name` varchar(16) NOT NULL, `leader` tinyint(1) default '0', `leader2` tinyint(1) default '0', `tag` varchar(25) NOT NULL, `friendly_fire` tinyint(1) default '0', `neutral_kills` int(11) default NULL, `rival_kills` int(11) default NULL, `civilian_kills` int(11) default NULL, `deaths` int(11) default NULL, `last_seen` bigint NOT NULL, `join_date` bigint NOT NULL, `trusted` tinyint(1) default '0', `flags` text NOT NULL, `packed_past_clans` text, PRIMARY KEY (`id`), UNIQUE KEY `uq_sc_players_1` (`name`));"; this.core.execute(query); } if (!this.core.existsTable("sc_kills")) { SimpleClans.log("Creating table: sc_kills", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_kills` ( `kill_id` bigint(20) NOT NULL auto_increment, `attacker` varchar(16) NOT NULL, `attacker_tag` varchar(16) NOT NULL, `victim` varchar(16) NOT NULL, `victim_tag` varchar(16) NOT NULL, `kill_type` varchar(1) NOT NULL, PRIMARY KEY (`kill_id`));"; this.core.execute(query); } } else { SimpleClans.getInstance().getServer().getConsoleSender().sendMessage("MYSQL FALHOU @%$#~&I"); } } else { this.core = new SQLiteCore(this.plugin.getDataFolder().getPath()); if (this.core.checkConnection()) { SimpleClans.log("SQLITE CONECTOU! "); if (!this.core.existsTable("sc_clans")) { SimpleClans.log("Creating table: sc_clans", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_clans` ( `id` bigint(20), `verified` tinyint(1) default '0', `tag` varchar(25) NOT NULL, `color_tag` varchar(25) NOT NULL, `name` varchar(100) NOT NULL, `friendly_fire` tinyint(1) default '0', `founded` bigint NOT NULL, `last_used` bigint NOT NULL, `packed_bb` mediumtext NOT NULL, `flags` text NOT NULL, `balance` double(64,2) default 0.0, PRIMARY KEY (`id`), UNIQUE (`tag`));"; this.core.execute(query); } if (!this.core.existsTable("sc_players")) { SimpleClans.log("Creating table: sc_players", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_players` ( `id` bigint(20), `name` varchar(16) NOT NULL, `leader` tinyint(1) default '0', `leader2` tinyint(1) default '0', `tag` varchar(25) NOT NULL, `friendly_fire` tinyint(1) default '0', `neutral_kills` int(11) default NULL, `rival_kills` int(11) default NULL, `civilian_kills` int(11) default NULL, `deaths` int(11) default NULL, `last_seen` bigint NOT NULL, `join_date` bigint NOT NULL, `trusted` tinyint(1) default '0', `flags` text NOT NULL, `packed_past_clans` text, PRIMARY KEY (`id`), UNIQUE (`name`));"; this.core.execute(query); } if (!this.core.existsTable("sc_kills")) { SimpleClans.log("Creating table: sc_kills", new Object[0]); final String query = "CREATE TABLE IF NOT EXISTS `sc_kills` ( `kill_id` bigint(20), `attacker` varchar(16) NOT NULL, `attacker_tag` varchar(16) NOT NULL, `victim` varchar(16) NOT NULL, `victim_tag` varchar(16) NOT NULL, `kill_type` varchar(1) NOT NULL, PRIMARY KEY (`kill_id`));"; this.core.execute(query); } } else { SimpleClans.getInstance().getServer().getConsoleSender().sendMessage("SQLITE FALHOU!"); } } }
  4. Se quiser posso fazer para você, só que não será de graça. Caso queira entre em contato comigo via MP.
  5. BigWriter

    Testando spoiler.

    spoiler acima não funcionou! alguém sabe como resolver? @eu sei que está não é a area correta
  6. Modifica isso no worldguard, lá tem Block_Creeper_Explosions .. ai ta em false, você coloca true
  7. Sim, tipo Coloquei uma tocha no slot 2 e um peitoral no slot 1 (EXEmplo) ai vai gasta essa tocha e vai reparar o peitoral... só q não vai precisar usar aqueles trampo de enchant da bigorna tradicional tlg ?
  8. Bom, estou com uma dúvida querendo editar meio q a bigorna do modo tradicional que ela funciona, quero que quando um item que eu selecionar... for colocado no slot 2, ele repare qualquer item sendo assim desativado os item padrão madeira, ouro etc... achei um código aqui na net só que não consegui utilizar para o modo que eu quero! https://bukkit.org/threads/inventory-anvil-events.142990/
  9. Basta procurar aqui no fórum que você encontra todos! De mão beijada ai quer fácil né!
  10. Achei nada sobre o suposto sangue não.
  11. Isso ser TIKI Veja mais aqui o https://pt.wikipedia.org/wiki/Tiki
  12. Sempre digite corretamente, sem nenhum erro ou palavras fulas Você não digitou corretamente, então quer dizer que sua chance de ser rico acabou! Letras maiúsculas depois de virgulas hm... acertou mininu.
  13. Cara sinceramente o preço está muito caro... além do que configurar um skript e algo muito fácil, até mesmo fazer se você se esforçar um pouco você faz, tudo bem você que você ache que vale 50 reais, mais dando minha opinião, quem aceitar isso não deveria nem estar abrindo um servidor
  14. Só de ver que será 1.5.2, já desanima um pouco em tentar algo... muito limitado e poucas funções. Mas boa sorte !
  15. Tipo você já sabe como cria a primeira gui né, então simples você vai criar outra do mesmo modo da primeira só que você vai abrir ela só quando o player interagir com tal item na gui ai você vai p.openinventory(inv2); por exemplo...
  16. Bom, criar da para criar só que o netbens e como podemos dizer mais completo e por isso se torna um pouco mais dificil a entender ele, então todos recomendam usar o eclipse.
×
×
  • Criar Novo...