DatabaseExtendability is an advanced but easily usable sql query API for NukkitX 2.0
Usage for SQLite:
class PlayerDatabase extends SQLiteDatabase {
public PlayerDatabase(File file) {
super(file);
super.connect();
}
@Override
public void initiate() {
try...
INTRODUCTION
In this tutorial we will be extending the 3 previous tutorials. This tutorial will be mainly focused on applying the knowledge you've learned thus far to make a functional AND useful plugin. We will be recreating my Hud Plugin in this tutorial.The Javadocs will be referred to a lot...
Don't quote me on this but I believe you can do something like the following using FakeInventories https://github.com/NukkitX/FakeInventories
ChestFakeInventory chest = new ChestFakeInventory();
chest.onOpen(player);
You would set the contents in the constructor of the inventory using an...
With Cooldown API you can easily create cooldowns and timers!
Creating a cooldown is as simple as this:
//First argument is the cooldown identifier
//Second argument is the time in seconds
CooldownAPI.addCooldown("civiled.warp.pvp", 100);
You can also remove cooldowns like so:
//The first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.