* important fix for servers with promotion column (#36)

* caused player.vocation to be resetted when saving player, for example:
on change name, accept invite to guild, leave guild
* fixed empty success message on leave guild
* (internal) using $player->getVocationName() where possible instead of
older method
* fixed some warning in guild show
This commit is contained in:
slawkens1
2018-01-08 01:00:56 +01:00
parent acf2e2fb4a
commit 4102b44352
8 changed files with 20 additions and 19 deletions

View File

@@ -63,10 +63,7 @@ foreach($posts as &$post)
$post['group'] = $groupName;
$post['player_link'] = getPlayerLink($player->getName());
$post['vocation'] = 'Unknown';
if(isset($config['vocations'][$player->getVocation()])) {
$post['vocation'] = $config['vocations'][$player->getVocation()];
}
$post['vocation'] = $player->getVocationName();
$rank = $player->getRank();
if($rank->isLoaded())