mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 11:53:52 -07:00
Hook onto the server, and added player
This commit is contained in:
25
src/org/bukkit/craftbukkit/CraftPlayer.java
Normal file
25
src/org/bukkit/craftbukkit/CraftPlayer.java
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
package org.bukkit.craftbukkit;
|
||||
|
||||
import net.minecraft.server.fi;
|
||||
import org.bukkit.Player;
|
||||
|
||||
public class CraftPlayer implements Player {
|
||||
private fi player;
|
||||
private final String name;
|
||||
private final CraftServer server;
|
||||
|
||||
public CraftPlayer(CraftServer serv, fi handle) {
|
||||
player = handle;
|
||||
name = player.aw;
|
||||
server = serv;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public boolean isOnline() {
|
||||
return server.server.g(name);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user