Skip to content

Bungee Setup REDIS

Ben edited this page Dec 31, 2023 · 4 revisions

This is still a new and not very tested method, report any issues

This setup requires VotingPlugin on proxy and every backend server you want rewards/voting info on. Votifier must only be on proxy. Requires mysql. See below for settings and troubleshooting steps.

Bungee Setup REDIS

  • This is very similar to PLUGINMESSAGING, but uses redis as the communication method
  • VotingPlugin on every server you want rewards on (including proxy server)
  • Bungeecord also handles all totals/points addition rather than spigot servers, except for ingame commands (Option for this)
  • All servers point to the same MySQL table
  • Steps for Proxy/Spigot below:

Bungee/Proxy (VotingPlugin settings, bungeeconfig.yml):

  • Votifier setup on here only (no forwarding, nuvotifier forwarding method set to none)
  • BungeeMethod: REDIS
  • Input REDIS info
  • SendVotesToAllServers: true (for a reward on each server) or false (reward on whatever server player connects to first)
  • Set MySQL settings, must match same table as the other servers (MySQL is required)

Spigot/Backend Servers:

  • No votifier installed (Votifier on bungee only) - votes will be ignored anyway (to prevent double votes)
  • BungeeSettings.yml:
    • BungeeMethod: REDIS
    • Input REDIS info
    • UseBungeecord: true
    • BungeeBroadcastAlways: false (If true, always broadcast, even on cached votes)
    • Set the matching server name as setup on proxy server (REQUIRED or it won't work)
  • VoteSites: VoteSites setup on each server (only servicesites need to match)
  • Config.yml:
    • Set AllowUnJoined to true (Bungee has option and control over this)
    • Set MySQL settings
  • Restart may be required for it to work after setting everything

Running on velocity:

Velocity requires a mysql driver to be installed, one available here (install as a plugin in plugin folder) will allow VotingPlugin to run on velocity with no compatibility layer. Works the exact same as bungeecord.

Troubleshooting:

  • Check status & working condition with /votingpluginbungee status (Requires players to be online to test)
  • Run bungee test vote with /votingpluginbungee vote (player) (site)
  • NuVotifier forwarding method set to none (And no votifier plugins on spigot servers)
  • If still not working restart all servers and verify everything is set correctly
  • Ensure VotingPlugin is on proxy server with nuvotifier on there as well
  • VotingPlugin on all spigot servers you want rewards on
  • If receiving double rewards at random check all servers names in bungeesettings.yml differ
Clone this wiki locally