Teiko API [Command API, Sidebar API + TabAPI] - [$5 JAR/$15 SRC]

Status
This thread has been locked.

joejerino

Premium
Feedback score
26
Posts
832
Reactions
234
Resources
0
A feature-rich library that will make your life 10x easier making plugins.


Teiko API Documentation

Example args surrounded by [] are optional.

Shaded libraries
- commons-pool
- gson
- hikaricp
- jafama (fast math)
- jedis
- mongo-driver
- slf4j

CommandAPI (Register commands directly into the command map)
Example:
Registering command: (In your main class or a handler) new ExampleCommand([required objects]);
Example class: https://gyazo.com/a56d0dd162d13968133bd5b733539a8f
Note: build() must be called in order for the command to be put into the command map.

SidebarAPI (Non-flickering, via-version (Tested with 1.7+)
Example:
Registering sidebar: (In your main class or a handler) new SidebarHandler([required objects]);
Example class: https://gyazo.com/d1fcf3ed32ed736cdb4e93fd6df365df

TablistAPI (YOU CAN SET PINGS! Compatible with built-in sidebarapi, via-version (Tested with 1.7+)
Example:
Registering tab: (In your main class or a handler) new TabHandler([required objects]);
Example class: https://gyazo.com/baf829379413bcd7b1f60deef9357743

CC (Shortened bukkit colors & a utility for translating string lists.)
Example: player.sendMessage(CC.GOLD + "Example");

Configuration (Create a configuration file that will be copied from your source folder, defaults are copied every reload!)
Example: new Configuration(Plugin plugin, String fileName)
Methods: reload(), save(), getConfig()

ItemBuilder (Create an ItemStack with easily set meta)
Example: player.getInventory().addItem(new ItemBuilder(Material material, [int amount], [short data]).setName("example").setLore("1", "2").asItemStack());
Methods: setName(String name), setLore(String... lore), setLoreLine(String line, int index), addLoreLine(String line),
removeLoreLine(String line), removeLoreLine(int index), setAmount(int amount), setDurability(int durability),
addEnchantment(Enchantment enchantment), removeEnchantment(Enchantment enchantment), setSkullOwner(String playerName)

PlayerUtil (Utility for players)
Methods: getPing(Player player), setNametag(Player player, String name), hideFromTablist(Player player), showInTablist(Player player),
addPermission(Plugin plugin, Player player, String permission), removePermission(Plugin plugin, Player player, String permission)

ServerUtil (Utility for whole-server)
Methods: setMaxPlayers(int max), broadcast(String message), broadcast(String permission, String message)

Timer (Easy to use timer utility) [Could potentially be stored in a Map on a profile/user obj]
Example: new Timer(Plugin plugin, int start, boolean countdown)
Methods: start(), stop(), isActive(), getSeconds()

UUIDGetter (Return a player's uuid, even if they have never joined)
Example: UUIDGetter.getUUID(Player player)


Code snippets





mgxAq8T

ih3R5XY

lVypl2I

a9gbHt4

LN1fllb


Pricing:
JAR - $5
SRC - $15

Join this discord and create a ticket to purchase: https://discord.gg/Q9xjKmQ
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

ZP4RKER

Feedback score
17
Posts
227
Reactions
79
Resources
0
Extremely simple functions... not sure why you'd sell this.
 

joejerino

Premium
Feedback score
26
Posts
832
Reactions
234
Resources
0
Update 1.01

- Added requested setDescription() and setUsage() for the CommandAPI.
 

joejerino

Premium
Feedback score
26
Posts
832
Reactions
234
Resources
0
Update 1.1

- Fixed sidebar thread not starting - Fixed sidebar lines being upside down
- Configuration#save revamped, when saving comments will be saved.
- Started preparation for implementing an async thread for scoreboard.
 
Status
This thread has been locked.
Top