Skip to content

RestoreMonarchyPlugins/SteamAccountRestrictor

Repository files navigation

Steam Account Restrictor

Block suspicious Steam accounts from joining your Unturned server.

Features

  • Kick accounts with private Steam profiles
  • Kick limited Steam accounts (no purchases / not full members)
  • Kick accounts younger than a configurable age
  • Kick VAC banned accounts
  • Bypass permission for staff and trusted players
  • Optional custom kick command (e.g. ban via your own kick/ban plugin)
  • Fully asynchronous Steam Web API checks — zero impact on server tick

Permissions

Permission Description
steamaccountrestrictor.bypass Skip all Steam account checks for this player or group

Setup

  1. Install the plugin into the Rockets/Plugins directory.
  2. Get a Steam Web API key from https://steamcommunity.com/dev/apikey
  3. Open SteamAccountRestrictor.configuration.xml and paste your key into SteamWebAPIKey.
  4. Toggle the checks you want enabled and restart the server.

Configuration

<?xml version="1.0" encoding="utf-8"?>
<SteamAccountRestrictorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Debug>false</Debug>
  <SteamWebAPIKey>APIKEY</SteamWebAPIKey>
  <KickPrivateProfiles>true</KickPrivateProfiles>
  <KickLimitedAccounts>true</KickLimitedAccounts>
  <KickMinimumAgeAccounts>true</KickMinimumAgeAccounts>
  <MinimumAccountAgeDays>3</MinimumAccountAgeDays>
  <KickVACBanAccounts>false</KickVACBanAccounts>
  <UseKickCommand>false</UseKickCommand>
  <KickCommand>kick {steamid} "{reason}"</KickCommand>
  <KickCommandDelay>1</KickCommandDelay>
</SteamAccountRestrictorConfiguration>

Configuration Options

Option Description
Debug Enable debug logging
SteamWebAPIKey Your Steam Web API key from https://steamcommunity.com/dev/apikey
KickPrivateProfiles Kick players whose Steam profile is private
KickLimitedAccounts Kick players with limited Steam accounts (e.g. no purchases)
KickMinimumAgeAccounts Kick players whose Steam account is younger than MinimumAccountAgeDays
MinimumAccountAgeDays Minimum required Steam account age in days
KickVACBanAccounts Kick players with any VAC ban on their Steam account
UseKickCommand Use a custom kick command instead of the built-in kick
KickCommand Command template; supports {steamid} and {reason} placeholders
KickCommandDelay Delay in seconds before executing the custom kick command

Translations

<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="KICKED_PRIVATE_PROFILE" Value="Your Steam profile is private." />
  <Translation Id="KICKED_LIMITED_ACCOUNT" Value="Your Steam account is limited." />
  <Translation Id="KICKED_MINIMUM_ACCOUNT_AGE" Value="Your Steam account is too young. It must be at least {0} days old." />
  <Translation Id="KICKED_VAC_BANNED" Value="Your Steam account is VAC banned." />
</Translations>

About

Block suspicious Steam accounts from joining your Unturned server.

Resources

Stars

Watchers

Forks

Contributors

Languages