Class RedisMessageEvent

java.lang.Object
org.bukkit.event.Event
com.tomkeuper.bedwars.api.events.communication.RedisMessageEvent

public class RedisMessageEvent extends org.bukkit.event.Event
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisMessageEvent(com.google.gson.JsonObject message, String addonName)
    Create a new RedisMessageEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
     
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    @NotNull com.google.gson.JsonObject
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisMessageEvent

      public RedisMessageEvent(com.google.gson.JsonObject message, String addonName)
      Create a new RedisMessageEvent
      Parameters:
      message - the message that was sent
      addonName - the name of the addon that sent the message
  • Method Details

    • getMessage

      @NotNull public @NotNull com.google.gson.JsonObject getMessage()
      Returns:
      the message that was sent
    • getAddonName

      @NotNull public @NotNull String getAddonName()
      Returns:
      the name of the addon that sent the message
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()