📋 Descripción
xHubBlocks is a lightweight plugin designed for Hubs. It gives players an infinite stack of blocks to practice bridging. The blocks disappear automatically after a configurable time.
✨ Features
- Infinite Items: Stack never runs out.
- Auto-Despawn: Blocks vanish with particles.
- Database: H2 (Local) or MySQL support for stats.
- Legacy Support: Works from 1.8.8 to 1.21+.
⚙️ Config.yml
storage:
type: H2 # Or MYSQL
mysql:
host: "localhost"
database: "xhubblocks"
blocks:
material: SANDSTONE
despawn-seconds: 5
👨💻 Developer API
// Get Stats Example
if (Bukkit.getPluginManager().getPlugin("xHubBlocks") != null) {
xHubBlocksAPI api = xHubBlocksAPI.getApi();
int total = api.getPlayerTotalPlaced(player.getUniqueId());
}