https://alessiodp.com/docs/search-index/parties

BungeeCord

Parties support both Bukkit (Spigot) and BungeeCord servers. If you wanna make available parties in more than one server, you have to install it into the BungeeCord one.

To enable some Bukkit only features in the entire network, you can install Parties on others Spigot servers and enable the bungeecord option in the config.yml:

# [Enable BungeeCord support]
# If you are using Parties on BungeeCord you should enable this option.
# With this option enabled, THIS Parties won't directly handle player actions
bungeecord:
  enable: true
  ...

{warning} If you wanna keep in sync all Parties plugins in Spigot servers, you must setup a remote database


How it works?

Parties BungeeCord

Parties in BungeeCord acts as main plugin, all commands/requests are handled by it.

You can extend it features by adding Parties into Spigot servers and enabling bungeecord option in config.yml.
By doing so it will be a silent plugin, no commands will be handled except ones in console (like /party reload). It will handle only special requests and its gonna dispatch all them directly to Parties on BungeeCord.

Thanks to this, you will still be able to use all Bukkit features that Parties offers, like: friendly fire, placeholders, auto command and API.

Options of Parties on Spigot

These are the options available for BungeeCord synchronization:

bungeecord:
    enable: false
    server-name: ServerName
    server-id: server
    config-sync: true

Options of Parties on BungeeCord

The settings of Parties on BungeeCord are just related to config sync:

bungeecord:
    config-sync: true

How to use placeholders?

If you wanna use external placeholders, only supported in Spigot version, you just have to install the plugin into the server that you want.

What if I use the API on Spigot but the server is BungeeCord?

Parties will cover this too, you can use the API wherever you prefer.

Any request made via Spigot plugin, in a BungeeCord system, it will be performed and dispatched an update request directly to Parties on BungeeCord.

This is not the best performance approach but if you wanna differently handle Parties in a BC context, you can check if the current plugin is running in a BungeeCord network with PartiesAPI.isBungeeCordEnabled().

{warning} The API method PartiesAPI.isBungeeCordEnabled() just returns true on Parties in Spigot if BungeeCord option is enabled

A similar approach is used to handle API events, if a party is created on BungeeCord, Spigot servers will still receive the Post event.

{warning} A Spigot server WILL NEVER receive a PRE event if it has been handled by BungeeCord. So carefully choose which event to use.

© AlessioDP 2015-2021