NoClassDefFoundError craftbukkit apache builder
Opened this issue ยท 0 comments
Describe the bug
It will cause a NoClassDefFoundError Could not initialize class org.bukkit.craftbukkit.libs.org.apache.commons.lang3.builder.ToStringBuilder
To Reproduce
Steps to reproduce the behavior:
public void initScoreboardRequest() {
pm.addPacketListener(
new PacketAdapter(
CorePlugin.getInstance(),
ListenerPriority.HIGHEST,
PacketType.Play.Server.PLAYER_INFO) {
@Override
public void onPacketSending(PacketEvent event) {
try {
PacketContainer pc = event.getPacket();
pc.getPlayerInfoDataLists().write(0, getTabs("XenoPyax", "Test dummy"));
pm.sendServerPacket(event.getPlayer(), pc);
} catch (InvocationTargetException e) {
e.printStackTrace();
}
event.setCancelled(true);
}
});
}
Expected behavior
To send playerInfo packets to players displaying the "Fake" player in the tab list.
Version Info
4.6.0
Additional context
I will send the packets sometimes but continues the spam the exception in the console.