L2Alliance alliance = null;
if(getAllyByName(allyName) == null)
{
L2Clan leader = player.getClan();
alliance = new L2Alliance(IdFactory.getInstance().getNextId(), allyName, leader);
alliance.store();
_alliances.put(alliance.getAllyId(), alliance);
player.getClan().setAllyId(alliance.getAllyId());
for(L2Player temp : player.getClan().getOnlineMembers(0))
{
temp.broadcastUserInfo(true);