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) {
  // 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 !

  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