Class Audiences

    • Constructor Detail

      • Audiences

        public Audiences()
    • Method Detail

      • server

        public static Audience server()
        Gets an Audience that targets the entire server, including players and system, when available.
        Returns:
        An audience
      • onlinePlayers

        public static Audience onlinePlayers()
        Gets an Audience that targets all online players.
        Returns:
        An audience
      • withPermission

        public static Audience withPermission​(String permission)
        Gets an Audience that targets all online players with the specified permission.
        Parameters:
        permission - The permission
        Returns:
        An audience
      • system

        public static Audience system()
        Gets an Audience that targets the system, such as a server console.
        Returns:
        An audience