Jump to content
  • 0

Question

12 answers to this question

Recommended Posts

  • 0
Posted

getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted.

 

If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.

  • 0
Posted

getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted.

 

If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.

sdfdsfd.png

 

 

change it again not my barrel sent in error console

  • 0
Posted


public void updatePlayerSiegeStateFlags(boolean clear)

{

L2Clan clan;

for(L2SiegeClan siegeClan : getAttackerClans())

{

clan = ClanTable.getInstance().getClan(siegeClan.getClanId());

for(L2PcInstance member : clan.getOnlineMembers(""))

{

member.setSiegeState((byte) (clear ? 0 : 1));

}

}

for(L2SiegeClan siegeclan : getDefenderClans())

{

clan = ClanTable.getInstance().getClan(siegeclan.getClanId());

for(L2PcInstance member : clan.getOnlineMembers(""))

{

member.setSiegeState((byte) (clear ? 0 : 2));

}

}

}

  • 0
Posted
	  public void updatePlayerSiegeStateFlags(boolean clear)
	  {
	    L2Clan clan;
	    for(L2SiegeClan siegeClan : getAttackerClans())
	    {
	      clan = ClanTable.getInstance().getClan(siegeClan.getClanId());
	      for(L2PcInstance member : clan.getOnlineMembers(""))
	      {
	        member.setSiegeState((byte) (clear ? 0 : 1));
	      }
	    }
	    for(L2SiegeClan siegeclan : getDefenderClans())
	    {
	      clan = ClanTable.getInstance().getClan(siegeclan.getClanId());
	      for(L2PcInstance member : clan.getOnlineMembers(""))
	      {
	        member.setSiegeState((byte) (clear ? 0 : 2));
	      }
	    }
	  }

 

Again my two barrel

Guest
This topic is now closed to further replies.
×
×
  • Create New...