if (!ALLOW_BUFFS)
{
player.getEffectList().stopAllEffects();
ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
}
player.sendPacket(new SkillList(player));
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
for (Player player : getPlayers(players_list2))
{
if (player != null)
{
try
{
if (player.isCastingNow())
{
player.abortCast(true, true);
}
if (!ALLOW_CLAN_SKILL)
{
if (player.getClan() != null)
{
for (Skill skill : player.getClan().getAllSkills())
{
player.removeSkill(skill, false);
}
}
}
if (!ALLOW_HERO_SKILL)
{
if (player.isHero())
{
Hero.removeSkills(player);
}
}
if (!ALLOW_BUFFS)
{
player.getEffectList().stopAllEffects();
ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
}
player.sendPacket(new SkillList(player));
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
for (Player player : getPlayers(players_list3))
{
if (player != null)
{
try
{
if (player.isCastingNow())
{
player.abortCast(true, true);
}
if (!ALLOW_CLAN_SKILL)
{
if (player.getClan() != null)
{
for (Skill skill : player.getClan().getAllSkills())
{
player.removeSkill(skill, false);
}
}
}
if (!ALLOW_HERO_SKILL)
{
if (player.isHero())
{
Hero.removeSkills(player);
}
}
if (!ALLOW_BUFFS)
{
player.getEffectList().stopAllEffects();
ThreadPoolManager.getInstance().schedule(new buffPlayer(player), 0);
}
player.sendPacket(new SkillList(player));
}
catch (Exception e)
{
e.printStackTrace();
}