function Player:onGainExperience(source, exp, rawExp)
local party = self:getParty()
if party then
if party:isSharedExperienceEnabled() and party:isSharedExperienceActive() then
local bonus = config[party:getVocationCount()]
if not bonus then
return exp
end
exp = exp * bonus
end
end
return exp
end