CloudSync icon

CloudSync -----

A spigot-bungee handshake.



Patreon Link: [​IMG] https://www.patreon.com/RockinChaos
Platforms:
[​IMG] BungeeCord, Velocity, Waterfall, HexaCord

[​IMG]
[​IMG] [​IMG] [​IMG] [​IMG]

About
This plugin was designed to be an API to allow spigot plugins to communicate with the BungeeCord instance.

In the instance of my other plugin ItemJoin, if you are trying to use for example,
Code (Text):
bungee: friends
on your custom item commands, you will need this plugin installed onto your BungeeCord server.

Installation
1.) Drag and drop this plugin into your BungeeCord plugins folder.

2.) Drag and drop ItemJoin into your Spigot/Bukkit plugins folder.

API Usage

Code (Text):
private final String PLUGIN_CHANNEL = "plugin:cloudsync";
private boolean detectFailure = false;

   /**
    * Initializes the BungeeCord Listener.
    *
    */
    public BungeeAPI() {
        final Messenger messenger = YourPlugin.getInstance().getServer().getMessenger();
        if (!messenger.isOutgoingChannelRegistered(YourPlugin.getInstance(), this.PLUGIN_CHANNEL)) {
            messenger.registerOutgoingPluginChannel(YourPlugin.getInstance(), this.PLUGIN_CHANNEL);
        }
        if (!messenger.isIncomingChannelRegistered(YourPlugin.getInstance(), this.PLUGIN_CHANNEL)) {
            messenger.registerIncomingPluginChannel(YourPlugin.getInstance(), this.PLUGIN_CHANNEL, this);
        }
    }
 
   /**
    * Executes the BungeeCord Command as the Player instance.
    *
    * @param player - The Player executing the Bungee Command.
    * @param command - The Bungee Command the Player is executing.
    */
    public void ExecuteCommand(final Player player, final String command) {
        if (StringUtils.containsIgnoreCase(player.getListeningPluginChannels().toString(), "plugin:cloudsync")) {
            final ByteArrayDataOutput out = ByteStreams.newDataOutput();
            try {
                out.writeUTF(player.getName());
                out.writeUTF(command);
            } catch (Exception e) { ServerUtils.sendDebugTrace(e); }
            player.sendPluginMessage(ItemJoin.getInstance(), this.PLUGIN_CHANNEL, out.toByteArray());
        } else {
            if (!this.detectFailure) {
                Bukkit.getServer().getLogger().severe("Failed to execute the Bungee command /" + command + " because CloudSync was not detected on your BungeeCord server.");
                this.detectFailure = true;
            }
        }
    }

Do note this currently only serves functionality for plugins to communicate with the BungeeCord instance, this is not a standalone BungeeCord plugin.
[​IMG]
[​IMG][​IMG] [​IMG]

[​IMG]


[​IMG]

[​IMG]

A massive thanks to those who have donated to help support the plugin's development. It is not the amount donated that matters, it is the fact that these supporters donated to support what they love. Even the smallest donation means so much because it grants the feeling that I have created something that is wanted. Every donation inspires and gives me the motivation to keep this plugin alive and thriving.
HTML:
<Awesome Crafters>
      Nobody :(         =>         $0.00USD
</Awesome Crafters>

Supporters who are listed with an UNK value are those who I am unable to calculate the amount donated. If you are of these supporters and know the amount you contributed, please contact me and I will fill in the proper value. If you wish to be apart of these amazing supporters, consider donating as it is the best way to say thanks to the developer!

[​IMG]



★ Requested Changes ★
Please Pm me with feature requests! I will always look them over and get back to you.
Crossed Out requests means that they have been completed.
no.1) ...
[​IMG]

[​IMG] [​IMG]
Resource Information
Author:
----------
Total Downloads: 434
First Release: Jun 16, 2021
Last Update: Oct 17, 2024
Category: ---------------
All-Time Rating:
1 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings