Class VelocityPlayerExecutorListener


  • public class VelocityPlayerExecutorListener
    extends PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void broadcastMessage​(@NotNull java.lang.String message, @Nullable java.lang.String permission)  
      protected void broadcastMessageComponent​(@NotNull java.lang.String data, @Nullable java.lang.String permission)  
      protected void connect​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String service)  
      protected void connectToFallback​(@NotNull com.velocitypowered.api.proxy.Player player)  
      protected void dispatchCommand​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String command)  
      protected @NotNull java.util.Collection<com.velocitypowered.api.proxy.Player> getOnlinePlayers()  
      protected @Nullable com.velocitypowered.api.proxy.Player getPlayer​(@NotNull java.util.UUID uniqueId)  
      protected void kick​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String reason)  
      protected void sendMessage​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String message)  
      protected void sendMessageComponent​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String data)  
      protected void sendPluginMessage​(@NotNull com.velocitypowered.api.proxy.Player player, @NotNull java.lang.String tag, byte[] data)  
      • Methods inherited from class java.lang.Object

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

      • VelocityPlayerExecutorListener

        public VelocityPlayerExecutorListener​(com.velocitypowered.api.proxy.ProxyServer proxyServer)
    • Method Detail

      • getPlayer

        @Nullable
        protected @Nullable com.velocitypowered.api.proxy.Player getPlayer​(@NotNull
                                                                           @NotNull java.util.UUID uniqueId)
        Specified by:
        getPlayer in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • getOnlinePlayers

        @NotNull
        protected @NotNull java.util.Collection<com.velocitypowered.api.proxy.Player> getOnlinePlayers()
        Specified by:
        getOnlinePlayers in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • connect

        protected void connect​(@NotNull
                               @NotNull com.velocitypowered.api.proxy.Player player,
                               @NotNull
                               @NotNull java.lang.String service)
        Specified by:
        connect in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • kick

        protected void kick​(@NotNull
                            @NotNull com.velocitypowered.api.proxy.Player player,
                            @NotNull
                            @NotNull java.lang.String reason)
        Specified by:
        kick in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • sendMessage

        protected void sendMessage​(@NotNull
                                   @NotNull com.velocitypowered.api.proxy.Player player,
                                   @NotNull
                                   @NotNull java.lang.String message)
        Specified by:
        sendMessage in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • sendMessageComponent

        protected void sendMessageComponent​(@NotNull
                                            @NotNull com.velocitypowered.api.proxy.Player player,
                                            @NotNull
                                            @NotNull java.lang.String data)
        Specified by:
        sendMessageComponent in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • sendPluginMessage

        protected void sendPluginMessage​(@NotNull
                                         @NotNull com.velocitypowered.api.proxy.Player player,
                                         @NotNull
                                         @NotNull java.lang.String tag,
                                         byte[] data)
        Specified by:
        sendPluginMessage in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • broadcastMessageComponent

        protected void broadcastMessageComponent​(@NotNull
                                                 @NotNull java.lang.String data,
                                                 @Nullable
                                                 @Nullable java.lang.String permission)
        Specified by:
        broadcastMessageComponent in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • broadcastMessage

        protected void broadcastMessage​(@NotNull
                                        @NotNull java.lang.String message,
                                        @Nullable
                                        @Nullable java.lang.String permission)
        Specified by:
        broadcastMessage in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • connectToFallback

        protected void connectToFallback​(@NotNull
                                         @NotNull com.velocitypowered.api.proxy.Player player)
        Specified by:
        connectToFallback in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>
      • dispatchCommand

        protected void dispatchCommand​(@NotNull
                                       @NotNull com.velocitypowered.api.proxy.Player player,
                                       @NotNull
                                       @NotNull java.lang.String command)
        Specified by:
        dispatchCommand in class PlayerExecutorListener<com.velocitypowered.api.proxy.Player>