Class RedisBungeeAPI

java.lang.Object
com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI

public class RedisBungeeAPI extends AbstractRedisBungeeAPI
This platform class exposes some internal RedisBungee functions. You obtain an instance of this object by invoking getRedisBungeeApi() or somehow you got the Plugin instance by you can call the api using RedisBungeePlugin.getAbstractRedisBungeeApi().
Since:
0.2.3 | updated 0.8.0
  • Constructor Details

  • Method Details

    • getServerFor

      public final @Nullable ServerInfo getServerFor(@NonNull UUID player)
      Get the server where the specified player is playing. This function also deals with the case of local players as well, and will return local information on them.
      Parameters:
      player - a player uuid
      Returns:
      ServerInfo Can be null if proxy can't find it.
      See Also:
    • getRedisBungeeApi

      public static RedisBungeeAPI getRedisBungeeApi()
      Api instance
      Returns:
      the API instance.
      Since:
      0.6.5