BungeeChannelApi 1.0.0

An easy way to work with the "BungeeCord Plugin Messaging Channel".

  1. DevLeeo
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    Source Code:
    https://github.com/leonardosnt/BungeeChannelApi
    An easy way to work with the "BungeeCord Plugin Messaging Channel".

    Sorry for the non-existent description, my english is poor.

    Some examples:

    Instantiate:


    Code (Text):

    // Create new instance for this plugin or get existing one.
    // Same of "new BungeeChannelApi(this);"
    BungeeChannelApi api = BungeeChannelApi.of(this); // this = Plugin instance.
     
    Get online player count:

    Code (Text):

    api.getPlayerCount("ALL")
      .whenComplete((result, error) -> {
        sender.sendMessage("§aThere are " + result + " players online on all servers.");
      });
     
    Get a list of players connected on a certain server, or on ALL the servers:

    Code (Text):

    api.getPlayerList("ALL")
      .whenComplete((result, error) -> {
        sender.sendMessage("§aPlayers online: " + result.stream().collect(Collectors.joining(", ")));
      });
     
    Send a message to a player:

    Code (Text):

    api.sendMessage("leonardosnt", "§cHello world");
     
    More examples: https://github.com/leonardosnt/BungeeChannelApi#readme