Class DefaultPlayerManager

    • Constructor Detail

      • DefaultPlayerManager

        public DefaultPlayerManager()
    • Method Detail

      • getPlayerExecutor

        @NotNull
        public @NotNull PlayerExecutor getPlayerExecutor​(@NotNull
                                                         @NotNull java.util.UUID uniqueId)
        Description copied from interface: IPlayerManager
        Creates a new player executor to interact with the given player.
        Specified by:
        getPlayerExecutor in interface IPlayerManager
        Parameters:
        uniqueId - the uniqueId of the player to interact with
        Returns:
        a new PlayerExecutor
      • broadcastMessage

        public void broadcastMessage​(@NotNull
                                     @NotNull java.lang.String message)
        Description copied from interface: IPlayerManager
        Broadcasts a specific message over the whole network.
        Specified by:
        broadcastMessage in interface IPlayerManager
        Parameters:
        message - the message to be sent to all online players
      • broadcastMessage

        public void broadcastMessage​(@NotNull
                                     @NotNull java.lang.String message,
                                     @Nullable
                                     @Nullable java.lang.String permission)
        Description copied from interface: IPlayerManager
        Broadcasts a specific message to all online players that have the given permission. If the given permission is null, no permission is checked and the message is sent to all online players.
        Specified by:
        broadcastMessage in interface IPlayerManager
        Parameters:
        message - the message to be sent to all online players with the given permission
        permission - the permission to check for
      • messageBuilder

        public de.dytanic.cloudnet.driver.channel.ChannelMessage.Builder messageBuilder()