Added functionality to the disband party button

This commit is contained in:
luisc committed 2024-01-11 18:24:33 -06:00
1 parent ae43f0548d
commit cdd3f22826
5 files changed
+35 -3

No files matched your search

@@ -131,6 +131,15 @@ public class PacketHandlerServer{
}
}
Server.sendData(player, EnumPacketClient.GUI_DATA, compound);
} else if (type == EnumPacketServer.DisbandParty) {
PlayerData playerData = PlayerDataController.Instance.getPlayerData(player);
if (playerData.partyUUID != null) {
PartyController.Instance().disbandParty(playerData.partyUUID);
}
NBTTagCompound compound = new NBTTagCompound();
compound.setBoolean("Disband", true);
Server.sendData(player, EnumPacketClient.GUI_DATA, compound);
}
if(type.needsNpc && npc == null){