Interface PlayerExecutor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void connect​(@NotNull java.lang.String serviceName)
      Connects an online player to a specific service.
      @NotNull java.util.UUID getPlayerUniqueId()
      Gets the uniqueId of the player this player executor handles.
      void kick​(@NotNull java.lang.String message)
      Kicks an online player from the network with a specific reason.
      void sendChatMessage​(@NotNull java.lang.String message)
      Sends a plugin message to a specific online player.
      void sendPluginMessage​(@NotNull java.lang.String tag, @org.jetbrains.annotations.NotNull byte[] data)
      Sends a message to a specific online player.
    • Method Detail

      • getPlayerUniqueId

        @NotNull
        @NotNull java.util.UUID getPlayerUniqueId()
        Gets the uniqueId of the player this player executor handles.
        Returns:
        the UUID of the player
      • connect

        void connect​(@NotNull
                     @NotNull java.lang.String serviceName)
        Connects an online player to a specific service.
        Parameters:
        serviceName - the name of the service the player should be sent to
      • kick

        void kick​(@NotNull
                  @NotNull java.lang.String message)
        Kicks an online player from the network with a specific reason.
        Parameters:
        message - the reason for the kick which will be displayed in the players client
      • sendChatMessage

        void sendChatMessage​(@NotNull
                             @NotNull java.lang.String message)
        Sends a plugin message to a specific online player.
        Parameters:
        message - the message to be sent to the player
      • sendPluginMessage

        void sendPluginMessage​(@NotNull
                               @NotNull java.lang.String tag,
                               @NotNull
                               @org.jetbrains.annotations.NotNull byte[] data)
        Sends a message to a specific online player. The tag has to be registered in the proxy.
        Parameters:
        tag - the tag of the plugin message
        data - the data of the plugin message