PVPPracticeBot-1.2-fixed.ja
What's new
PVPPracticeBot v1.2 – Bugfix Changelog
🐛 Bug Fixes
/pvpbot spawn crashing silently
PVPBot.setAttributes()calledzombie.getAttribute(...)with no null check. On Paper 1.21+, attribute lookups inside theWorld.spawn()consumer can returnnullbefore the entity is fully initialised, causing an NPE that swallowed the whole spawn. All four attributes (MAX_HEALTH,MOVEMENT_SPEED,ATTACK_DAMAGE,KNOCKBACK_RESISTANCE) are now null-checked.
Immortality toggle crashing
PVPBot.setImmortal()had the exact same null-deref pattern onMAX_HEALTHandKNOCKBACK_RESISTANCE. Fixed with the same null-safesetAttribute()helper.
Combat AI NPE after bot is spawned
executeEasyAI()andexecuteMediumAI()calledentity.getTarget().damage(...)without checking ifgetTarget()returned null. If a target player logged off or died between ticks, this threw an NPE mid-combat. Both now guard withif (t != null)before dealing damage.
This mod has no additional files

