* @param force force leave operation, even if match is in progress
* @return true if player was successfully removed, otherwise false
*/
public boolean leave(Player player, boolean force)
{
PlayerTeamLeaveEvent event = new PlayerTeamLeaveEvent(player, this);
AutoReferee.callEvent(event);
if (event.isCancelled()) return false;
// if the match is in progress, no one may leave their team
if (!match.getCurrentState().isBeforeMatch() && !force &&
match.getReferees().size() > 0) return false;