Skip to content

Trigger Disconnect

MoSadie edited this page Feb 17, 2023 · 4 revisions

Description

Disconnect from the current world/server and display a configurable disconnection screen.

Automatically saves the world in singleplayer and disconnects from a server in multiplayer, if required. Can be triggered from any screen, including the main menu.

Configuration Options

  • Title (optional): An optional title to display on the key. Customize location and font using the T icon to the right of the text box.
  • Minecraft IP (required): The address that the EffectMC mod is running on. (Example: http://localhost:3000)
  • Title (required): The title section of the message on the disconnection screen. To make blank place a space in the text box. Formatting codes using § work.
  • Message (required): The message section of the message on the disconnection screen. To make blank place a space in the text box. Formatting codes using § work.
  • Next Screen (required): Determines what screen the "Back to Server List" takes you to when clicked. Options are Main Menu, Server Select, and World Select.

Example Configuration

Screenshot of Elgato Stream Deck software with a title, Minecraft IP, Title, and Message set for the Trigger Disconnect action

In-Game Experience

In-World

Gif of the player staring at the sky. The screen suddenly goes grey, then a dirt screen saying "You've been disconnected! You pressed the button!" appears. The player clicks "Back to Server List" and are taken to the Minecraft Server List screen.

From Main Menu

Gif starts at the main menu. The screen goes to a dirt screen saying "You've been disconnected! You pressed the button!" appears. The player clicks "Back to Server List" and are taken to the Minecraft Server List screen.

Advanced: HTTP Request Information

  • Method: GET
  • Endpoint: /triggerdisconnect
  • Parameters:
    • device: Device ID (String)
    • title: The title to show on the disconnected screen. (String)
    • subtitle: The subtitle to show on the disconnected screen. (String)
    • nextscreen: The screen to go to after clicking "Back to Server List". Accepted values: main_menu, server_select, world_select