Skip to content

Bungee Setup SOCKETS

Ben edited this page Feb 26, 2023 · 8 revisions

VotingPlugin on each spigot server + Bungee (No votifier forwarding, most complicated, try PLUGINMESSAING first):

Important information:

  • Ports available for sockets and ability for servers to communicate with each other
  • Same encryption file on all servers (VotingPlugin/secretkey.key)
  • Socket servers setup (in configs), bungee and spigot servers with the other server information on each server (Similar to votifier forwarding)
  • Test with /votingpluginbungee vote (player) (site) - If this doesn't work then it is not setup correctly
  • Global broadcasts: enable in bungee and/or spigot servers configs
  • BungeeMethod: SOCKETS set on each server (is by default)

On Bungee:

  • NuVotifier

  • VotingPlugin:

    • MySQL same as other servers
    • Socket servers setup (Bungee server and relevant spigot servers)
    • Option to give reward on each server or all of them
  • bungeeconfig.yml settings (add these):

    # Server to send vote to if player is offline
    FallBackServer: factions
    
    # Bungee communication, Add this to each spigot server
    # For socket method
    BungeeServer:
      Host: '127.0.0.1'
      Port: 1297
      
    # Bungee communication, add each spigot server here
    # For socket method
    SpigotServers:
      lobby:
        Host: '127.0.0.1'
        Port: 1298
      factions:
        Host: '127.0.0.1'
        Port: 1999
    

On each spigot server:

  • No votifier

  • VotingPlugin:

    • MySQL same as other servers
    • usebungeecord: true
    • Socket server setup (Add info to bungee and vise versa)
    • Setup votesites on each server (Needs to be the same names)
  • BungeeSettings.yml settings (add these):

    # Bungee communication, add bungee host/port here
    # For socket method
    BungeeServer:
      Host: '127.0.0.1'
      Port: 1297
      
    # Bungee communication, add this to bungee server
    # For socket method
    SpigotServer:
      Host: '127.0.0.1'
      Port: 1298
    

Troubleshooting:

  • Check status & working condition with /votingpluginbungee status
  • Run bungee test vote with /votingplguinbungee vote (player) (site)
  • If still not working restart all servers and verify everything is set correctly
Clone this wiki locally