Class PlayerExecutorListener<P>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void broadcastMessage​(@NotNull java.lang.String message, @Nullable java.lang.String permission)  
      protected abstract void broadcastMessageComponent​(@NotNull java.lang.String data, @Nullable java.lang.String permission)  
      protected void connect​(@NotNull java.util.Collection<P> players, @NotNull java.util.function.Predicate<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> filter, @NotNull ServerSelectorType selectorType)  
      protected abstract void connect​(P player, @NotNull java.lang.String service)  
      protected abstract void connectToFallback​(P player)  
      protected abstract void dispatchCommand​(P player, @NotNull java.lang.String command)  
      protected java.util.Optional<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> findService​(@NotNull java.util.function.Predicate<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> filter, @NotNull ServerSelectorType selectorType)  
      protected abstract @NotNull java.util.Collection<P> getOnlinePlayers()  
      protected abstract P getPlayer​(@NotNull java.util.UUID uniqueId)  
      void handleChannelMessage​(de.dytanic.cloudnet.driver.event.events.channel.ChannelMessageReceiveEvent event)  
      protected abstract void kick​(P player, @NotNull java.lang.String reason)  
      protected abstract void sendMessage​(P player, @NotNull java.lang.String message)  
      protected abstract void sendMessageComponent​(P player, @NotNull java.lang.String data)  
      protected abstract void sendPluginMessage​(P player, @NotNull java.lang.String tag, @org.jetbrains.annotations.NotNull byte[] data)  
      • Methods inherited from class java.lang.Object

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

      • PlayerExecutorListener

        public PlayerExecutorListener()
    • Method Detail

      • handleChannelMessage

        public void handleChannelMessage​(de.dytanic.cloudnet.driver.event.events.channel.ChannelMessageReceiveEvent event)
      • getPlayer

        @Nullable
        protected abstract P getPlayer​(@NotNull
                                       @NotNull java.util.UUID uniqueId)
      • getOnlinePlayers

        @NotNull
        protected abstract @NotNull java.util.Collection<P> getOnlinePlayers()
      • connect

        protected abstract void connect​(@NotNull
                                        P player,
                                        @NotNull
                                        @NotNull java.lang.String service)
      • kick

        protected abstract void kick​(@NotNull
                                     P player,
                                     @NotNull
                                     @NotNull java.lang.String reason)
      • sendMessage

        protected abstract void sendMessage​(@NotNull
                                            P player,
                                            @NotNull
                                            @NotNull java.lang.String message)
      • sendMessageComponent

        protected abstract void sendMessageComponent​(@NotNull
                                                     P player,
                                                     @NotNull
                                                     @NotNull java.lang.String data)
      • sendPluginMessage

        protected abstract void sendPluginMessage​(@NotNull
                                                  P player,
                                                  @NotNull
                                                  @NotNull java.lang.String tag,
                                                  @NotNull
                                                  @org.jetbrains.annotations.NotNull byte[] data)
      • broadcastMessageComponent

        protected abstract void broadcastMessageComponent​(@NotNull
                                                          @NotNull java.lang.String data,
                                                          @Nullable
                                                          @Nullable java.lang.String permission)
      • broadcastMessage

        protected abstract void broadcastMessage​(@NotNull
                                                 @NotNull java.lang.String message,
                                                 @Nullable
                                                 @Nullable java.lang.String permission)
      • connectToFallback

        protected abstract void connectToFallback​(@NotNull
                                                  P player)
      • dispatchCommand

        protected abstract void dispatchCommand​(@NotNull
                                                P player,
                                                @NotNull
                                                @NotNull java.lang.String command)
      • findService

        protected java.util.Optional<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> findService​(@NotNull
                                                                                                         @NotNull java.util.function.Predicate<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> filter,
                                                                                                         @NotNull
                                                                                                         @NotNull ServerSelectorType selectorType)
      • connect

        protected void connect​(@NotNull
                               @NotNull java.util.Collection<P> players,
                               @NotNull
                               @NotNull java.util.function.Predicate<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> filter,
                               @NotNull
                               @NotNull ServerSelectorType selectorType)