promotional bannermobile promotional banner

HTDevLib

A comprehensive utility library for Hytale plugin development, providing tested helpers and utilities that simplify common modding tasks.

File Details

HYTALEDEVLIB-0.2.1.jar

  • R
  • Jan 18, 2026
  • 69.21 KB
  • 41
  • Early Access

File Name

HYTALEDEVLIB-0.2.1.jar

Supported Versions

  • Early Access

Version 0.2.1 (2026-01-18)

Critical Fix - Plugin Loading

HytaleDevLib Plugin Structure

  • CRITICAL FIX: Fixed plugin failing to load with ClassNotFoundException
  • Added HytaleDevLibPlugin as Main class
  • Plugin now loads successfully as a library with proper structure

EventHelper - Player Join/Disconnect Improvements

  • NEW: onPlayerJoinWorldWithUUID(plugin, callback) - Get world, UUID, and username on player join
    • Extracts UUID from event's Holder component immediately
    • Waits 50 ticks (2.5 seconds) for player to be fully added to world
    • Retrieves username using EntityHelper.getPlayerByUUID() and EntityHelper.getName()
    • Callback receives: (World world, UUID uuid, String username)
  • UPDATED: onPlayerJoinWorld(plugin, callback) - Now properly extracts world from event
    • Added note about player availability timing in world.getPlayers()
  • UPDATED: onPlayerDisconnect(plugin, callback) - Now provides both UUID and username
    • Callback receives: (UUID uuid, String username)
    • Uses PlayerRef.getUuid() and PlayerRef.getUsername()
  • NEW: onPlayerDisconnectByName(plugin, callback) - Legacy method for username-only usage