Plugin API
Server Toolkit
Ranks, regions, homes, warps, kits, moderation and WorldEdit-style tools.
Updated Dec 5, 2026
Building blocks for the plugins most servers run. All are guest-side Rust, unit-tested, and need no host changes. Storage-backed ones open a folder, usually ctx.get_data_folder(), so they need fs.read.data and fs.write.data.
| Module | Similar to | What it gives you |
|---|---|---|
rank::Ranks | LuckPerms-lite | Ranks::open(folder): define, set_player_rank, prefix_of, has_permission with inheritance, * wildcards and -node negation |
region::RegionManager | WorldGuard-lite | define, set_flag, set_priority, at, flag_at(world, block, "build", default) |
locstore::{Warps, Homes} | Essentials warps and homes | Warps::open(folder) with set, get, remove, names; Homes::open(folder) with a per-player limit |
teleport | Player#teleport(Location) | player.location(), teleport_to_location, and teleport_with_warmup(&player, loc, secs, cancel_on_move) |
tprequest::TeleportRequests | /tpa, /tpahere | request, accept, deny, cancel_from, with expiry |
kit::KitSet | Essentials kits | KitSet::from_config(&cfg) reads [kits.<name>] (items = ["bread:16"], cooldown = "1d"); Kit::give(&player) |
punish::PunishmentList | Mutes and bans | PunishmentList::open(folder, "mutes"): punish(id, reason, by, Option<Duration>), active, pardon; expired entries clean themselves up |
worldedit | WorldEdit-lite | fill, hollow, walls, fill_with over a Cuboid, each with a max_blocks safety limit |
toggle::ToggleSet | God, vanish and fly modes | toggle, is_on, set, on_keys |
Protecting a spawn area
let regions = RegionManager::open(ctx.get_data_folder())?;
// in a block-break handler
if !regions.flag_at(&world_name, block, "build", true) {
event.cancelled = true;
}
A /home with a warm-up
if let Some(home) = homes.get(&account_of(&player), "base") {
// 3 second warm-up that cancels when the player moves
teleport_with_warmup(&player, home, 3, true);
}
teleport_with_warmup looks the player up by UUID every second, so it is safe if they log out in the meantime.
Ranks
let ranks = Ranks::open(ctx.get_data_folder())?;
let prefix = ranks.prefix_of(&account_of(&player));
let may_build = ranks.has_permission(&account_of(&player), "build.place");
Heavy edits
worldedit runs synchronously inside the call. Keep max_blocks modest (tens of thousands), or split big jobs across ticks with tasks::run_timer_limited.