Useful classes for making a bungeecord & spigot plugin
Register a FileManager to handle a configuration file:
FileManager configYml = new FileManager("config.yml");
configYml.create();
configYml.load();
config = configYml.get();Optional register global config:
config = new HashMap<>();
ArrayList<String> configKeys = new ArrayList<>();
getConfigKeysRecursive(configYml.get(), "", configKeys);
for (String key : configKeys) {
config.put(key, config.get(key));
}Register a MySQlManager to create a MySQl connection and work with a MySQl database:
mysql = new MySQlManager("localhost", 3306, "test", "root", "");
mysql.connect();
if (mysql.isConnected()) {
mysql.createTable();
}Register an ItemBuilder to modify ItemStacks:
new ItemBuilder(new ItemStack(Material.DIAMOND_SWORD),"§aCool Item").getItem();Register a LocationBuilder to load a location from the config file:
new LocationBuilder(p.getLocation(), "test").create();
new LocationBuilder("test").getLocation();Register a MapBuilder to create custom map images:
new MapBuilder(p.getWorld(), url).getMapItem();Register a ParticleBuilder to spawn particles in a more controlled way:
new ParticleBuilder(Particle.FLAME, p.getLocation(), 0, 0, 0, 0, 1).showAll();