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
    • getName

      @NotNull public @NotNull 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)