phase / gameapi Goto Github PK
View Code? Open in Web Editor NEW:video_game: A minigame API that combines the Overcast Network & Mineplex game systems.
Home Page: http://jadonfowler.xyz/GameAPI
License: Other
:video_game: A minigame API that combines the Overcast Network & Mineplex game systems.
Home Page: http://jadonfowler.xyz/GameAPI
License: Other
Hey!
I saw that you are actually doing on GameAPI. So, I want to ask you if you will release games like SuperPaintball, Death Tag, Snake,... to your github's account? I'll be happy to see you coding ๐ !
Thanks for answer and enjoy in programming!
And my issue:
Ok :) I wrote down code into my eclipse and I have some errors :/
First error is .getVersion() in GameAPI.java:
public static boolean is1_8(Player p){
return ((CraftPlayer) p).getHandle().playerConnection.networkManager.getVersion() >= 47;
}
The error sends me message "The method getVersion() is undefined for the type NetworkManager"
and I can only Add cast to method receiver, but it sends me bigger errors.
And second problem is connection.sendPacket in MessageManager.java:
public static void sendTitle(Player player, int fadeIn, int stay, int fadeOut, String title, String subtitle) {
CraftPlayer craftPlayer = (CraftPlayer) player;
if (!GameAPI.is1_8(player))
return;
IChatBaseComponent serializedTitle = ChatSerializer.a(TextConverter.convert(title));
IChatBaseComponent serializedSubTitle = ChatSerializer.a(TextConverter.convert(subtitle));
PlayerConnection connection = craftPlayer.getHandle().playerConnection;
connection.sendPacket(new ProtocolInjector.PacketTitle(
ProtocolInjector.PacketTitle.Action.TIMES, fadeIn, stay, fadeOut));
connection.sendPacket(new ProtocolInjector.PacketTitle(
ProtocolInjector.PacketTitle.Action.TITLE, (net.minecraft.server.v1_7_R4.IChatBaseComponent) serializedTitle));
connection.sendPacket(new ProtocolInjector.PacketTitle(
ProtocolInjector.PacketTitle.Action.SUBTITLE, (net.minecraft.server.v1_7_R4.IChatBaseComponent) serializedSubTitle));
}
The problems sends me a message "The method sendPacket(Packet) in the type PlayerConnection is not applicable for the arguments (ProtocolInjector.PacketTitle)"
I also have problem here:
public static void sendTabTitle(Player player, String header, String footer) {
CraftPlayer craftPlayer = (CraftPlayer) player;
if(!GameAPI.is1_8(player)) return;
PlayerConnection connection = craftPlayer.getHandle().playerConnection;
IChatBaseComponent header2 = ChatSerializer.a(new StringBuilder().append("{'text': '")
.append(header).append("'}").toString());
IChatBaseComponent footer2 = ChatSerializer.a(new StringBuilder().append("{'text': '")
.append(footer).append("'}").toString());
connection.sendPacket(new ProtocolInjector.PacketTabHeader());
}
This problem sends me a message "The method sendPacket(Packet) in the type PlayerConnection is not applicable for the arguments (ProtocolInjector.PacketTabHeader)"
Can you help please? Thanks!
Update to Spigot 1.8
We need to add Spectators to games. I'd like to have them on the same NMS Team, so they can see each other as ghosts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.