Class DefaultPlayerExecutor

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultPlayerExecutor​(@NotNull java.util.UUID uniqueId)  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

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

      • DefaultPlayerExecutor

        public DefaultPlayerExecutor​(@NotNull
                                     @NotNull java.util.UUID uniqueId)
    • Method Detail

      • getPlayerUniqueId

        @NotNull
        public @NotNull java.util.UUID getPlayerUniqueId()
        Description copied from interface: PlayerExecutor
        Gets the uniqueId of the player this player executor handles.
        Specified by:
        getPlayerUniqueId in interface PlayerExecutor
        Returns:
        the UUID of the player
      • connect

        public void connect​(@NotNull
                            @NotNull java.lang.String serviceName)
        Description copied from interface: PlayerExecutor
        Connects an online player to a specific service.
        Specified by:
        connect in interface PlayerExecutor
        Parameters:
        serviceName - the name of the service the player should be sent to
      • kick

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

        public void sendChatMessage​(@NotNull
                                    @NotNull java.lang.String message)
        Description copied from interface: PlayerExecutor
        Sends a plugin message to a specific online player.
        Specified by:
        sendChatMessage in interface PlayerExecutor
        Parameters:
        message - the message to be sent to the player
      • sendPluginMessage

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