@@ -0,0 +1,2426 @@
+/*%0A * Copyright (c) 2016 MCPhoton %3Chttp://mcphoton.org%3E and contributors.%0A *%0A * This file is part of the Photon Server Implementation %3Chttps://github.com/mcphoton/Photon-Server%3E.%0A *%0A * The Photon Server Implementation is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * The Photon Server Implementation is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0Apackage org.mcphoton.impl.entity;%0A%0Aimport java.util.UUID;%0Aimport org.mcphoton.entity.living.Player;%0Aimport org.mcphoton.inventory.Inventory;%0Aimport org.mcphoton.world.Location;%0A%0A/**%0A *%0A * @author TheElectronWill%0A */%0Apublic class PhotonPlayer implements Player %7B%0A%0A%09private final String name;%0A%09private final UUID accoundId;%0A%09private volatile Location location;%0A%0A%09public PhotonPlayer(String name, UUID accoundId, Location location) %7B%0A%09%09this.name = name;%0A%09%09this.accoundId = accoundId;%0A%09%09this.location = location;%0A%09%7D%0A%0A%09@Override%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09@Override%0A%09public UUID getAccountId() %7B%0A%09%09return accoundId;%0A%09%7D%0A%0A%09@Override%0A%09public Location getLocation() %7B%0A%09%09return location;%0A%09%7D%0A%0A%09@Override%0A%09public void setLocation(Location l) %7B%0A%09%09this.location = l;%0A%09%7D%0A%0A%09@Override%0A%09public void setBanned(boolean b) %7B%0A%09%7D%0A%0A%09@Override%0A%09public void setOp(boolean b) %7B%0A%09%7D%0A%0A%09@Override%0A%09public void setWhitelisted(boolean b) %7B%0A%09%7D%0A%0A%09@Override%0A%09public boolean isBanned() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public boolean hasPlayedBefore() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public boolean isOnline() %7B%0A%09%09return true;%0A%09%7D%0A%0A%09@Override%0A%09public boolean isOp() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public boolean isWhitelisted() %7B%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public Inventory getInventory() %7B%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public boolean hasPermission(String permission) %7B%0A%09%09return false;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22PhotonPlayer%7B%22 + %22name=%22 + name + %22, accoundId=%22 + accoundId + %22, location=%22 + location + '%7D';%0A%09%7D%0A%0A%7D%0A

Add a basic implementation of the Client interface