Add config check for old SB level rewards

This commit is contained in:
AconiteGodOfSWG
2020-11-02 01:44:09 -05:00
parent c7d8ee1fb9
commit 9c2896ae21

View File

@@ -384,6 +384,7 @@ public class base_player extends script.base_script
return SCRIPT_CONTINUE;
}
public void grantLevelSpecificRewards(obj_id player, int newCombatLevel) throws InterruptedException{
if(!utils.checkConfigFlag("Custom", "grantLevelSpecificRewards")) return;
if(hasObjVar(player, "level.reward." + newCombatLevel)) return;
obj_id inv = utils.getInventoryContainer(player);
switch(newCombatLevel){