示例#1
0
文件: ban.cpp 项目: CkyLua/OTHire
bool BanManager::removePlayerBans(const std::string& name) const
{
	uint32_t playerId = 0;
	std::string n = name;
	return IOPlayer::instance()->getGuidByName(playerId, n)
		&& removePlayerBans(playerId);
}
示例#2
0
bool BansManager::removePlayerBans(unsigned int id)
{
	bool result = false;

	if (CreaturesManager.getPlayer(id))
	{
		result = removePlayerBans(CreaturesManager.getPlayer(id)->getName());
	}	
    return result;
}