use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project Citizens2 by CitizensDev.
the class NMSImpl method removeFromServerPlayerList.
@Override
public void removeFromServerPlayerList(Player player) {
EntityPlayer handle = (EntityPlayer) NMSImpl.getHandle(player);
((CraftServer) Bukkit.getServer()).getHandle().players.remove(handle);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project Citizens2 by CitizensDev.
the class NMSImpl method removeFromServerPlayerList.
@Override
public void removeFromServerPlayerList(Player player) {
EntityPlayer handle = (EntityPlayer) NMSImpl.getHandle(player);
((CraftServer) Bukkit.getServer()).getHandle().players.remove(handle);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project GSit by Gecolay.
the class GPoseSeat method createNPC.
private ServerPlayer createNPC() {
MinecraftServer mcs = ((CraftServer) Bukkit.getServer()).getServer();
ServerLevel sl = ((CraftWorld) s.getLocation().getWorld()).getHandle();
GameProfile pf = new GameProfile(UUID.randomUUID(), GPM.getMManager().toColoredString(s.getPlayer().getName()));
pf.getProperties().putAll(cp.getGameProfile().getProperties());
return new ServerPlayer(mcs, sl, pf);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project GSit by Gecolay.
the class GPoseSeat method createNPC.
private ServerPlayer createNPC() {
MinecraftServer mcs = ((CraftServer) Bukkit.getServer()).getServer();
ServerLevel sl = ((CraftWorld) s.getLocation().getWorld()).getHandle();
GameProfile pf = new GameProfile(UUID.randomUUID(), GPM.getMManager().toColoredString(s.getPlayer().getName()));
pf.getProperties().putAll(cp.getGameProfile().getProperties());
return new ServerPlayer(mcs, sl, pf);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project GSit by Gecolay.
the class GPoseSeat method createNPC.
private ServerPlayer createNPC() {
MinecraftServer mcs = ((CraftServer) Bukkit.getServer()).getServer();
ServerLevel sl = ((CraftWorld) s.getLocation().getWorld()).getHandle();
GameProfile pf = new GameProfile(UUID.randomUUID(), GPM.getMManager().toColoredString(s.getPlayer().getName()));
pf.getProperties().putAll(cp.getGameProfile().getProperties());
return new ServerPlayer(mcs, sl, pf);
}
Aggregations