1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

1.17 (obsolete) Check 2 On

Checks to see if multiple user accounts log in at the same time.

  1. GrandPa-G
    API Version:
    TShock Version:
    Source URL:
    This plugin will check to see if the same user account is currently logged in by another player. Action will be taken based upon configuration options. Additionally, feedback options to the player, console or admin maybe selected.

    The command is 2on.

    The configuration file, Check2On.json is created with default settings.
      "action": 0,
      "email": false,
      "host": "",
      "port": 25,
      "credentialsUser": "",
      "credentialsPassword": "",
      "sendTo": "",
      "sendFrom": "",
      "EnableSsl": false
    The options are:

    action, a number 0, 1, 2. 0 means that no action will be taken and no one will be notified. 1 means that a message will be sent to the console and player and logged. 2 means the new player will be kicked with a message stating "Your user account is currently in use.". Also the same feedback will be taken.

    In addition, if the TShock server is configured for (or can reach) SMTP outgoing mail, there are options to also have a email sent to an address defined in the configuration file. The configuration option email must be set to true to allow any email attempts. Emails will only be sent when the action option is 1 or 2. The rest of the options need to be filled in for appropriate values. A command line option -test can be used to try a test mail with the configuration options set up. Also, a command line option -r will reload the configuration file to allow easy adjustments to the options until the desired result is obtained.