mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Added logging for GCW Crafting when the players profession could not be identified.
This commit is contained in:
Regular → Executable
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user