docs

APIconfig/APIconfigManager:

Usage:

public class clazz {
    MainAPI api;
    APIconfig configname
    
    public void onEnable() {
        api = MainAPI.getMain();
        api.APIcfgm.getNewConfig("someconfig.yml");
    }
}

Now you can:

public class clazz {
    MainAPI api;
    APIconfig configname
    
    public void onEnable() {
        api = MainAPI.getMain();
        api.APIcfgm.getNewConfig("someconfig.yml");
        api.log(configname.get("abc.abc.abc") + "")
    }
}

APIbukkit:

getRootFolder() #returns root folder of your server
getPluginList() #returns the list of plugins

APIactionbar:

runNameBar(String) #displays a message below action bar.
runActionBar(String) #displays an actionbar message.

APIbroadcast:

broadcast(String) #broadcasts a message to all players.

APIchat:

sendMsg(Player, String) #Like sendMessage(), but replaces & with colorcodes %player%
 with players name %>> with » and stuff like that.
convert(String) #replaces & with colorcodes %player%
 with players name %>> with » and stuff like that.

APIchestGUI:

addItem(Inventory inv, Material item, int amount, int itemdata, int x, int y) # places an item into an inventory with the following tags.
addItem(Inventory inv, String name, String lore, Material item, int amount, int itemdata, int x, int y) # places an item into an inventory with the following tags.
addItem(Inventory inv, String name, ArrayList<String> lore, Material item, int amount, int itemdata, int x, int y) # places an item into an inventory with the following tags.

APIcooldown:

Usage:

public static Map<UUID,Integer> TutTime = new HashMap<UUID,Integer>();
public static Map<UUID,Integer> TutTask = new HashMap<UUID,Integer>();
public void method() {
    api.APIcd.preCooldown(Time, Task, int, UUID);
    TutTask.put(playerUUID, core.getServer().getScheduler().runTaskTimer(core, new Runnable() {
        public void run() {
            int timeLeft = TutTime.get(playerUUID);
            if (timeLeft == 0) {
                core.APIcd.stopCooldown(TutTime, TutTask, playerUUID);
            } else {
                TutTime.put(playerUUID, timeLeft--);
            }
        }
    }, 0, 20);
}

APIentityFromUUID:

getLivingEntity(UUID uuid) #gets entity from UUID

Comments

Posts Quoted:
Reply
Clear All Quotes