225226227228229230231232233234235
if (player.getTrainedBeast() != null) { L2TamedBeastInstance traindebeast = player.getTrainedBeast(); traindebeast.stopAllEffects(); traindebeast.doDespawn(); } if (Config.REMOVE_CUBIC_OLYMPIAD) { if(player.getCubics() != null)