Sueta
JA

jAPI - Developer API to make plugin development easy.

1.1

API used on my plugins (jPlugins)

·Plugin

This API is made to make developing spigot plugins easier. You are allowed to copy the files, unless you speak that is yours.

In the next versions:

  • More inventories types
  • More utilities to Minigame API
  • How to use (Wiki): BungeeBukkit, Command Builder, EconomyAPI, Hologram Creator, Inventory Builder, MinigameAPI, MySQL Connector and Clickable Chat
  • Economy and Hologram MySQL data option
  • Chat Menu
  • New spigot page

This API contains the following libraries:

  • BungeeBukkit
  • Command Builder
  • EconomyAPI
  • Hologram Creator
  • Inventory Builder (new) (beta)
  • MinigameAPI (beta)
  • Mysql Connector
  • Yaml configurator
  • Clickable Chat
  • Scoreboard Creator
  • Title Creator
  • Actionbar Creator
  • Custom Tablist Creator (beta)
  • Custom Event creator
Creating a title
Title t = new Title().setTitle(title).setSubtitle(subtitle).setTime(fadeIn, show, fadeOut); // Creating a title. Default time: fade in: 1 sec; show time: 2 secs; fade out: 1 sec;
t.send(player); // Send the title to a player
t.sendAll(); // Send the title to all online players
Creating an actionbar
Actionbar a = new Actionbar(text); // Creating an actionbar
a.send(player); // Send the actionbar to a player
a.sendAll(); // Send the actionbar to all online players
Creating an custom tablist
Tablist t = new Tablist().setHeader(header).setFooter(footer); // Creating a custom tablist
t.send(player); // Send the tablist to a player
t.sendAll(); // Send the tablist to all online players
Creating a scoreboard
Scoreboard sb = new Scoreboard(title); // Create the scoreboard
sb.addLine(line); // Add a line to the scoreboard
sb.setLine(text, line); // Set a line to the scoreboard. Lines starts on 16
Creating an animated scoreboard
sb.setScoreUpdate(new ScoreUpdate() { // Create an animation
         
            @Override
            public void execute(int time, Scoreboard scoreboard) {
            }
}, time, endOnZero); // Time in seconds. If endOnZero == true the counter will stop on zero.
sb.cancelScoreUpdate(true); // Cancel score update
Create an Yaml Configuration
YAMLFile config = new YAMLFile(filename, directory, pluginInstance); // Create the Yaml File
config.getConfiguration(); // Acess the configuration methods
config.saveConfig(); // Save the configuration file
config.saveDefaultConfig(); // Save the default configuration file

Similar projects

Plugin →