/*
 * Copyright (c) 2016 MCPhoton <http://mcphoton.org> and contributors.
 *
 * This file is part of the Photon API <https://github.com/mcphoton/Photon-API>.
 *
 * The Photon API is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * The Photon API is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.mcphoton.server;

import java.util.Collection;
import org.mcphoton.entity.living.Player;
import org.mcphoton.world.World;

/**
 * Represents a game server.
 */
public interface Server {
	/**
	 * @return the server's BansManager.
	 */
	BansManager getBansManager();

	/**
	 * @return the server's WhitelistManager.
	 */
	WhitelistManager getWhitelistManager();

	/**
	 * Gets all the currently connected players.
	 *
	 * @return an unmodifiable collection containing the currently online players.
	 */
	Collection<Player> getOnlinePlayers();

	/**
	 * Gets all the server's worlds.
	 *
	 * @return an unmodifiable collection containing the server's worlds.
	 */
	Collection<World> getWorlds();

	/**
	 * Gets the world with the specified name.
	 *
	 * @param name the world's name.
	 * @return the world with the specified name.
	 */
	World getWorld(String name);

	/**
	 * @return the server's configuration.
	 */
	ServerConfiguration getConfiguration();

	/**
	 * @return the server's implementation version.
	 */
	String getVersion();
}
@@ -886,16 +886,39 @@
 ection;%0A
+import java.util.UUID;%0A
 import o
@@ -1400,24 +1400,330 @@
 Players();%0A%0A
+%09/**%0A%09 * Gets an online Player.%0A%09 *%0A%09 * @param accountId the player's account id%0A%09 * @return an online Player instance%0A%09 */%0A%09Player getPlayer(UUID accountId);%0A%0A%09/**%0A%09 * Gets an online Player.%0A%09 *%0A%09 * @param name the player's name%0A%09 * @return an online Player instance%0A%09 */%0A%09Player getPlayer(String name);%0A%0A
 %09/**%0A%09 * Get

Add getPlayer(name/UUID) in the Server interface