Class VelocityMessenger

java.lang.Object
ua.mcchickenstudio.opencreative.indev.messenger.VelocityMessenger
All Implemented Interfaces:
org.bukkit.plugin.messaging.PluginMessageListener, Messenger, Manager

public class VelocityMessenger extends Object implements Messenger, org.bukkit.plugin.messaging.PluginMessageListener
  • Constructor Details

    • VelocityMessenger

      public VelocityMessenger()
  • Method Details

    • getPlanetToConnectPlayerOnJoin

      @Nullable public @Nullable Integer getPlanetToConnectPlayerOnJoin(@NotNull @NotNull UUID uuid)
      Specified by:
      getPlanetToConnectPlayerOnJoin in interface Messenger
    • clearRequestsOfPlayer

      public void clearRequestsOfPlayer(@NotNull @NotNull UUID uuid)
      Specified by:
      clearRequestsOfPlayer in interface Messenger
    • init

      public void init()
      Description copied from interface: Manager
      Initialization of manager.
      Specified by:
      init in interface Manager
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Manager
      Checks if manager is ready to work.
      Specified by:
      isEnabled in interface Manager
      Returns:
      true - if enabled, false - disabled.
    • getName

      public String getName()
      Description copied from interface: Manager
      Returns name of manager, that will be displayed by request in the logs.
      Specified by:
      getName in interface Manager
      Returns:
      name of manager.
    • fromBytesToString

      @NotNull public @NotNull String fromBytesToString(byte[] message)
    • onPluginMessageReceived

      public void onPluginMessageReceived(@NotNull @NotNull String channel, @NotNull @NotNull org.bukkit.entity.Player player, byte[] message)
      Specified by:
      onPluginMessageReceived in interface org.bukkit.plugin.messaging.PluginMessageListener
    • send

      public void send(@NotNull @NotNull org.bukkit.entity.Player player)