mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
26 lines
538 B
Java
26 lines
538 B
Java
|
|
package org.bukkit.craftbukkit;
|
|
|
|
import net.minecraft.server.EntityPlayerMP;
|
|
import org.bukkit.Player;
|
|
|
|
public class CraftPlayer implements Player {
|
|
private EntityPlayerMP player;
|
|
private final String name;
|
|
private final CraftServer server;
|
|
|
|
public CraftPlayer(CraftServer serv, EntityPlayerMP handle) {
|
|
player = handle;
|
|
name = player.aw;
|
|
server = serv;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public boolean isOnline() {
|
|
return server.server.g(name);
|
|
}
|
|
}
|