forked from Limeth/Breakpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Breakpoint Java API
Jindřich Veselý edited this page Oct 14, 2016
·
7 revisions
What it is ?
Breakpoint API based on Java is API that can let you get information about Breakpoint, like amount of players in CTF etc.
you need to make your own handler for API, but you need 3 things.
- Basic knowledge of Java
- Custom Classes (Packets, Class for Info)
- Lib that it all runs on, and that is KryoNet
There is code for Kryonet how to handle the API in Listener Class
@Override
public void received(Connection conn, Object o) {
// you will not get responce if you cant request or you are banned
if (o instanceof DataResponcePacket) {
DataResponcePacket packet = (DataResponcePacket) o;
// and from the info you can get the information :)
BPInfo info = packet.getBreakpointInfo();
}
}
Info about the limit !
- You can have only 5 requests per 1 min.
- You can connect only 20 times per 1 min.
- If any of these are higher then 20, you are banned for 10 minutes.
- If you connect more then 60 times per min. you will get perma banned.