bool BanManager::removePlayerBans(const std::string& name) const { uint32_t playerId = 0; std::string n = name; return IOPlayer::instance()->getGuidByName(playerId, n) && removePlayerBans(playerId); }
bool BansManager::removePlayerBans(unsigned int id) { bool result = false; if (CreaturesManager.getPlayer(id)) { result = removePlayerBans(CreaturesManager.getPlayer(id)->getName()); } return result; }