não está se registrando no evento, eu fiz os testes com char admin e char normal este erro sempre aparece acima
net.sf.l2j.gameserver.model.entity.events.teamvsteam.TvTEvent.java
/**
* Is called when a player is killed
* @param creature as Creature
* @param player as Player
*/
public static void onKill(Creature creature, Player player)
{
if (player == null || !isStarted())
return;
byte killedTeamId = getParticipantTeamId(player.getObjectId());
if (killedTeamId == -1)
return;
new TvTEventTeleporter(player, _teams[killedTeamId].getCoordinates(), false, false);
if (creature == null)
return;
Player killer = null;
if ((creature instanceof Pet) || (creature instanceof Summon))
{
killer = ((Summon) creature).getOwner();
if (killer == null)
return;
}
else if (creature instanceof Player)
killer = (Player) creature;
else
return;
byte killerTeamId = getParticipantTeamId(killer.getObjectId());
if (killerTeamId != -1 && killedTeamId != -1 && killerTeamId != killedTeamId)
{
TvTEventTeam killerTeam = _teams[killerTeamId];
killerTeam.increasePoints();
killerTeam.increasePoints(killer.getObjectId());
killer.setPvpKills(killer.getPvpKills() + 1);
killer.sendPacket(new UserInfo(killer));
if (Config.TVT_EVENT_ON_KILL.equalsIgnoreCase("pm"))
sysMsgToAllParticipants(killer.getName() + " Hunted Player " + player.getName() + "!");
else if (Config.TVT_EVENT_ON_KILL.equalsIgnoreCase("title"))
{
player.increasePointScore();
player.setTitle("Kills: " + killer.getPointScore());
player.broadcastTitleInfo();
}
else if (Config.TVT_EVENT_ON_KILL.equalsIgnoreCase("pmtitle"))
{
sysMsgToAllParticipants(killer.getName() + " Hunted Player " + player.getName() + "!");
killer.increasePointScore();
killer.setTitle("Kills: " + killer.getPointScore());
killer.broadcastTitleInfo();
}
}
}