Skip to content

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.

  1. Basic knowledge of Java
  2. Custom Classes (Packets, Class for Info)
  3. 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) {
  if (o == null) {
      return;
         //Your IP reached the max limit (5 per 1 min) and will be reseted in 1 min
         //if you request more then 20 per minute, you will get banned, the same for retrying connecting (unban is every 10 mins for everyone) 
  }
  if (o instanceof DataResponcePacket) {
      DataResponcePacket packet = (DataResponcePacket) o;
      BPInfo info = packet.getBreakpointInfo();
      // and from the info you can get the information :)
   }
}

Info about the limit !

  1. You can have only 5 requests per 1 min.
  2. You can connect only 20 times per 1 min.
  3. If any of these are higher then 20, you are banned for 10 minutes.
  4. If you connect more then 60 times per min. you will get perma banned.
Clone this wiki locally