Developer API - Nort721/GodsEye GitHub Wiki

What is the GodsEye API

The GodsEye API allows a developer to inject into GodsEye's systems and basically make GodsEye be their Advanced Cheat Detection library, developers can use the API to basically do with GodsEye whatever they want even make additional ban effects

Static methods

Developers can use the GodsEyeAPI class to call the following static methods

  • public static int getPing(Player p)
  • public static int getTransactionPing(Player p)
  • public static double getServerTPS()
  • public static void toggleAlertsForPlayer(Player p, boolean val)
  • public static void toggleVerboseForPlayer(Player p, boolean val)
  • public static void summonGuardiansCanSeeEverything(Player target)
  • public static void summonTheLightningOfTheGods(Player target)
  • public static void summonSwordFall(Player target)
  • public static int getGroundDistance(Player p)
  • public static boolean isBypassed(Player p)
  • public static void setBypassed(Player target, boolean bypassed)
  • public static boolean isCheckEnabled(CheckType t)
  • public static void enableCheck(CheckType t)
  • public static void disableCheck(CheckType t)
  • public static int getViolationLevel(Player p, CheckType t)
  • public static void setViolationsLevel(Player p, CheckType t, int amount)
  • public static String getPluginVersion()
  • public static void cancelCheck(Player target, CancelledCheck cancelledCheck, int ticks)

Events

GodsEyePlayerViolationEvent

Called every time a verbose notification is sent (every time a player fails a check)

GodsEyePrePlayerViolationEvent

Called before sending verbose notification

GodsEyePunishPlayerEvent

Called every time a player is punished (kicked or banned)

GodsEyeReportEvent

Called every time an alert notification is sent (every configurable amount of times the player fails)