Added logging for GCW Crafting when the players profession could not be identified.

This commit is contained in:
Cekis
2018-03-23 15:59:54 -07:00
committed by CekisSWG
parent 53301de39e
commit b2bfdb30b3
@@ -31,7 +31,10 @@ public class crafting_gcw_tools extends script.base_script
int fatigue = 1;
String skillTemplate = getSkillTemplate(player);
String profession = skill.getProfessionName(skillTemplate);
if (!profession.equals("trader"))
if(profession == null){
LOG("gcw-crafting","Unable to get player's (" + player + ":" + getPlayerFullName(player) + ") profession! Skill template is " + skillTemplate + ".");
}
else if (!profession.equals("trader"))
{
fatigue = 5;
}