Synchronizing cross server

Discussion in 'Plugin Development' started by WolfMage1, Oct 20, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    WolfMage1

    I have a banning system which works just like any other, but it's run on a spigot server and I'd like to be able to use it somewhat like a bungee banning system.

    So I have 2 servers and 2 players.

    Server A and B.
    Player A and B.

    Player A is on server A, and player B is on server B
    if player A bans player B, how do I "synchronize" server B so that it knows that player B is banned, and kicks them?
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    WolfMage1

    Yes, but how do I get it to be in "sync" without having to query it every minute
     
  4. Online

    timtower Administrator Administrator Moderator

    That would require sockets to do. You need to be able to open ports for that.
     
  5. Offline

    mythbusterma

    @WolfMage1

    Alternatively, you constantly query the database to keep it in sync. It's not the worst thing in the world, but is less prone to failures than using sockets, and with data like this, it might be the easiest thing to do.
     
    bwfcwalshy likes this.
  6. Offline

    plisov

    Get the bannedplayers file from server a and replace server B's banned file with server a ban file each time you run a command. Or set up a repeating task so it does it automatically.
     
  7. Offline

    mythbusterma

Thread Status:
Not open for further replies.

Share This Page