StarBridge

    StarBridge 2.1.6

    Game version
    0.203.164
    Description
    Provides a link between in-game server chat and a Discord server. Messages sent in-game will show up in your Discord server and messages sent in your Discord server will show up in-game.

    Features
    • Todo

    Setup
    1. Install the mod into the server by dragging StarBridge.jar into StarMade/mods/
    2. Create a bot through the Discord Developer API Portal and make sure to turn on all three Privileged Gateway Intents (Presence, Server Members, and Message Content).
    3. Invite your bot to your sever, and ensure it has permissions to interact with the desired channels.
    4. Run the server to allow the mod to generate the necessary files for the first time.
    5. The server will throw an exception due to an invalid config, as we need to modify the config values:
    • bot-name: The bot's default displayed name. If a player links their discord and in-game account, the bot will change it's name to that player's name when sending their messages.
    • bot-token: A unique token registered by discord to your bot. You can copy-paste this from the Discord Developer Portal.
    • server-id: The unique id assigned to your Discord server. You can get this value by enabling developer mod in Discord Settings, right-clicking the desired server, and pressing the "Copy Server ID" button.
    • chat-channel-id: The unique Discord channel id where the bot will read discord messages to send in-game and send messages from in-game to. You can get this value by enabling developer mode in Discord settings, right-clicking the desired channel, and pressing the "Copy Channel ID" button.
    • log-channel-id: The unique Discord channel id where the bot will post log messages from the game. This channel should only be viewable by administrators. You can get this value by enabling developer mode in Discord settings, right-clicking the desired channel, and pressing the "Copy Channel ID" button.
    • restart-timer: The timer used for automatic restarts, in milliseconds. The default value is 3600000, which is 6 hours.
    • default-shutdown-timer: The default timer to use for timed shutdowns, in milliseconds. Unless otherwise specified, once the shutdown command is run, the mod will announce a timed shutdown for this amount. The default value is 900000, which is around 15 minutes.

    Important Information
    This mod uses JDA, a Java Discord library to interface with the Discord API. Due to this, the mod requires the server be ran using Java 8, rather than Java 7, which StarMade comes bundled with. Note that only the server requires Java 8, any clients connecting to the server can use Java 7, as the mod is server-side only and doesn't need to be installed on clients.
    Author
    TheDerpGamerX
    Downloads
    8,692
    Views
    8,692
    First release
    Last update
    Rating
    0.00 star(s) 0 ratings

    More resources from TheDerpGamerX

    Latest updates

    1. Version 2.1.6 Release

      Bug Fixes: Fixed fix for crash bug.
    2. Version 2.1.5 Release

      Bug Fixes: Fixed another crash bug.
    3. Version 2.1.4 Release

      Changelog: Swapped to .queue() for asynch operations.