1. These forums are being retired. Please ask all questions and help threads and any other type of discussions on GitHub. During this time, new threads and user registrations have been disabled.

2.1 MultiServerChat 1.1

Facilitate chat between servers using REST.

  1. Ryozuki

    Plugin Developer

    Joined:
    Dec 25, 2014
    Messages:
    51
    Ryozuki submitted a new resource:

    MultiServerChat - Facilitate chat between servers using REST.

    Read more about this resource...
     
  2. MikeyMike

    MikeyMike Level 1

    Joined:
    Nov 23, 2017
    Messages:
    21
    Enabled RestAPI on 2 servers and opening the 2nd gives me this error.

    Invalid REST configuration:
    You may already have a REST service bound to port 7878.
    Please adjust your configuration and restart the server.
    Press any key to exit.
     
  3. MikeyMike

    MikeyMike Level 1

    Joined:
    Nov 23, 2017
    Messages:
    21
    Enabled RestAPI on 2 servers with different ports 7878 and 7879.

    I created 2 separate tokens for each port according to this reference.
    http://IP-ADDRESS-OF-SERVER:RESTAPI-PORT/v2/token/create?username={username}&password={password}

    Added this to both tshock config files.
    Code:
    "ApplicationRestTokens": {
        "SEPARATE-TOKENS-CREATED-FOR-EACH-PORT": {
          "Username": "Gaylord",
          "UserGroupName": "superadmin"
        }
      }
    Configurations made in the multiserverchat.json file.
    Code:
    {
      "RestURLs": [
        "[URL]http://45.76.26.54:7878/[/URL]",
        "[URL]http://45.76.26.54:7879/[/URL]"
      ],
      "Token": "SEPARATE-TOKENS-CREATED-FOR-EACH-PORT",
      "ChatFormat": "[{0}] {1}",
      "JoinFormat": "[{0}] {1} has joined.",
      "LeaveFormat": "[{0}] {1} has left.",
      "SendChat": true,
      "SendJoinLeave": true,
      "DisplayChat": true,
      "DisplayJoinLeave": true
    }
    Any additional steps that I need to take or correct?
     
  4. EightBit

    EightBit Level 1

    Joined:
    Aug 17, 2013
    Messages:
    10
    I have it working..kinda. When I chat it shows twice on the same server...like it's not being sent to the other.
     
    #4 EightBit, Mar 30, 2018
    Last edited: Mar 30, 2018
  5. NeutralShock

    NeutralShock Level 1

    Joined:
    May 22, 2018
    Messages:
    9
    This plugin is not currently working? I swear I have everything setup correctly but I even get no error messages so I don't know where to start.
     
    • Like Like x 1
  6. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    114
    I gave up. This thing is confusing as hell.
     
  7. NAGU

    NAGU Level 5

    Joined:
    Mar 1, 2014
    Messages:
    110
    In the "Token" box, place the remaining remaining API tokens in place of the current api token.

    This also applies to other .config files.