Add Gladiator kit and WorldEdit support

Introduce the Gladiator kit feature and supporting infrastructure: add KitMetaData enum and new GladiatorKit implementation (items, abilities, fight lifecycle and region logic), register the kit in SpeedHG, and add language entries for the kit and some bolded kit names. Add WorldEditUtils.createCylinder helper to build/tear down arenas. Extend KitEventDispatcher with listeners to handle gladiator arena block interactions and explosion handling (with a helper to step glass color -> air). Also add ingame guards in several projectile handlers and remove a small TODO/comment in GameStateListener.
This commit is contained in:
TDSTOS
2026-03-26 04:13:26 +01:00
parent 0043a3e82c
commit b2edcff447
7 changed files with 432 additions and 9 deletions

View File

@@ -34,4 +34,29 @@ object WorldEditUtils {
e.printStackTrace()
}
fun createCylinder(
world: World,
startLocation: Location,
radius: Int,
filled: Boolean,
height: Int,
block: Material
) = try {
val editSession = WorldEdit.getInstance().newEditSessionBuilder()
.world(BukkitAdapter.adapt( world )).maxBlocks( -1 ).build()
editSession.sideEffectApplier = SideEffectSet.defaults()
editSession.makeCylinder(
BukkitAdapter.asBlockVector( startLocation ),
BukkitAdapter.asBlockState(ItemStack( block )),
radius.toDouble(), height, filled
)
editSession.commit()
editSession.close()
} catch ( e: Exception ) {
e.printStackTrace()
}
}