GitHub (Codigo fonte): https://github.com/BrunoDluka/jAPI/tree/Bruno-D'Luka---jAPI-v4.3.2
ESTA API PODE NÃO FUNCIONAR EM VERSÕES ABAIXO DA 1.8!
O que ela possui?
API para ActionBar
API de chat
API de config
API de efeitos
API para itens
API para MySql
API para Npc
API para Player
API para TabList
API para Titulo
API para mundo
API para a classe principal
API para clima
Breve:
- API de minigame.
Como usar?
ActionBarAPI:
ActionBar.sendActionbar(Player jogador, String mensagem);
Para enviar para um jogador!
broadcastActionbar(String mensagem);
Para enviar para todos os jogadores!
ChatAPI:
ChatAPI.broadcast(String mensagem);
ChatAPI.clearchat(Player jogador);
runCommand(jogador, cmd, mensagem);
runCommandWithFlutuantText(jogador, cmd, msg, textoFlutuante);
suggestCommand(jogador, cmd, mensagem);
suggestCommandWithFlutuantText(jogador, cmd, msg, textoFlutuante);
openFile(jogador, arquivo, mensagem);
openUrl(jogador, url, mensagem);
EffectAPI:
EffectAPI.newParticle(Player jogador, EnumParticle particula, Location localizacao);
MainAPI:
MainAPI.newCommand(String comando, CommandExecutor execultor);
MainAPI.newEvent(Listener classe, Plugin plugin);
MySQL:
String host = "localhost:3306";
String user = "root";
String password = "password";
String database = "database";
MySQL mysql = new MySQL(host, user, password, database);
mysql.update("CREATE TABLE IF NOT EXISTS `teste` (`jogador` VARCHAR(16) NOT NULL);");
// CONECTADO JÁ, SE SUA HOST FOR VÁLIDA
-----------------------------------------------------------------------------------------------
// Conectando em SQLite
MySQL sqlite = new MySQL(getDataFolder(), "teste.db");
sqlite.update("CREATE TABLE IF NOT EXISTS `teste` (`jogador` VARCHAR(16) NOT NULL);");
// CONECTADO
// Para verificar a conexão
if(mysql.isConnected()){
// Está conectada
}else{
// Não está conectada
}
NpcAPI:
NpcAPI.setNpc(Player jogador, Location localizacao, String UUID, String nome);
// Module - https://pastebin.com/bheYSsdr
// UUID get - https://mcuuid.net/
TabListAPI:
TabListAPI.sendTablistHeaderAndFooter(Player p, String header, String footer);
TitleAPI:
TitleAPI.sendTitle(Player jogador, String titulo);
TitleAPI.sendSubtitle(Player jogador, String subtitulo);
TitleAPI.sendTitle(Player jogador, int fadeIn, int stay, int fadeOut, String titulo, String subtitulo);
ClimaAPI:
WeatherAPI.setDay(World mundo);
WeatherAPI.setNight(World mundo);
WeatherAPI.setTime(World mundo, long tempo);
ConfigAPI:
ConfigAPI.setPlugin(plugin);
new ConfigAPI config = new ConfigAPI(nome da config);
API's não citadas:
WorldAPI, PlayerAPI, API, ConfigAPI, ItemAPI e ChatAPI
Gostou da API? Se sim, deixe seu feedback abaixo!
Caso queira enviar-me o IP de seu servidor que usa a minha API ou algum outro plug-in meu fale aqui nos comentários ou em meu skype.
Skype para contato - jack.gp90 ou Dev - Bruno D'Luka - jackgmpls
Autor do plug-in: Bruno DLuka
Servidores usando a API: Nenhum
------------------------------------------------------
GitHub (Source code): https://github.com/BrunoDluka/jAPI/tree/Bruno-D'Luka---jAPI-v4.3.2
This api does not run on versions below 1.8!
What does she have?
ActionBarAPI
ChatAPI
ConfigAPI
EffectAPI
MySqlAPI
NpcAPI
PlayerAPI
TabListAPI
TitleAPI
WorldAPI
MainAPI
WeatherAPI
Brief:
- Minigame API
How to use?
ActionBarAPI:
ActionBar.sendActionbar(Player player, String message);
broadcastActionbar(String message);
ChatAPI:
ChatAPI.broadcast(String message);
ChatAPI.clearchat(Player player);
runCommand(player, command, msg);
runCommandWithFlutuantText(player, command, msg, flutuantText);
suggestCommand(player, comando, mensagem);
suggestCommandWithFlutuantText(player, command, msg, flutuantText);
openFile(player, file, msg);
openUrl(player, url, msg);
EffectAPI:
EffectAPI.newParticle(Player player, EnumParticle particle, Location location);
MainAPI:
MainAPI.newCommand(String comando, CommandExecutor execultor);
MainAPI.newEvent(Listener classe, Plugin plugin);
MySQL:
String host = "localhost:3306";
String user = "root";
String password = "password";
String database = "database";
MySQL mysql = new MySQL(host, user, password, database);
mysql.update("CREATE TABLE IF NOT EXISTS `teste` (`jogador` VARCHAR(16) NOT NULL);");
// CONNECTED NOW, IF YOUR HOST IS VALID
-------------------------------
// Connecting to SQLite
MySQL sqlite = new MySQL(getDataFolder(), "teste.db");
sqlite.update("CREATE TABLE IF NOT EXISTS `teste` (`jogador` VARCHAR(16) NOT NULL);");
// CONNECTED
// To check the connection
if(mysql.isConnected()){
// Is connected
}else{
// Not connected
}
NpcAPI:
NpcAPI.setNpc(Player player, Location location, String UUID, String name);
// Module - https://pastebin.com/bheYSsdr
// UUID get - https://mcuuid.net/
TabListAPI:
TabListAPI.sendTablistHeaderAndFooter(Player player, String header, String footer);
TitleAPI:
TitleAPI.sendTitle(Player player, String title);
TitleAPI.sendSubtitle(Player player, String subtitle);
TitleAPI.sendTitle(Player player, int fadeIn, int stay, int fadeOut, String title, String subtitle);
WeatherAPI:
WeatherAPI.setDay(World world);
WeatherAPI.setNight(World world);
WeatherAPI.setTime(World world, long time)
ConfigAPI:
ConfigAPI.setPlugin(plugin);
new ConfigAPI config = new ConfigAPI(config name);
API's not quoted:
WorldAPI, PlayerAPI, API, ConfigAPI, ItemAPI e ChatAPI
Did you like the API? If so, leave your feedback below!
If you want to send me the IP of your server that uses my API or some other plug-in my talk here in the comments or in my skype.
Skype to contact - jack.gp90 or Dev - Bruno D'Luka - jackgmpls
Plugin author: Bruno DLuka
Server using api: None
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta