No Rookies - GhoulofGSG9/NS2Stats.com GitHub Wiki

Overview

This plugin offers you the ability to set a min playtime for players to do certain things.

It uses Steam Api, the UWE Hive and Ns2Stats.com to determ the players total playtime and so there is no way to hide as rookie.

At the moment it allows you to block that players can join any team or that players are able to enter the Command Chair/Hive.

Players with access to sh_ignorestatus will be ignored by this plugin.

Default Config

The default config looks something like this:

{
    "MinPlayer": 0,
    "AllowSpectating": false,
    "InformMessage": "This server is not rookie friendly",
    "Kick": true,
    "Kicktime": 60,
    "KickMessage": "You will be kicked in %s min",
    "BlockCC": true,
    "BlockMessage": "This Server is not rookie friendly",
    "InformAtConnect": true,
    "MinPlaytime": 8,
    "MinComPlaytime": 8,
    "UseSteamTime": true,
    "ForceSteamTime": false,
    "BlockTeams": true,
    "ShowSwitchAtBlock": false,
    "DisableAfterRoundtime": 0,
    "WaitMessage": "Please wait while your player data is retrieved."
  }

The file should be called “norookies.json” and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).

The %s playeholders will be replaced by given plugin message values.

Config Options

Option Description Message Values
MinPlaytime Playtime ( in hours ) players have to fit to to pass the team check
MinComPlaytime Playtime ( in hours ) players have to fit to to pass the comm check
BlockCC If true, the plugin will block access to command chair for player who doesn’t fit to the MinComPlaytime
BlockTeams If true, the plugin will block access to teams for player who doesn’t fit to the MinPlaytime
ShowSwitchAtBlock If true, the plugin will show the switchmenu of the Server Switch Plugin if a player gets blocked
AllowSpectating If true, the plugin will not block access to the spectator team
InformAtConnect If true the InformMessage is shown to rookies after they connect
InformMessage Message which is shown to rookies at connect if InformAtConnect is true
BlockMessage Message which will send to player who fail the playtime check
MinPlayers Until not more than the MinPlayers are at the server no rookies will stay disabled
DisableAfterRoundtime After this amount of minutes after a roundstart, they plugin will disable itself until roundend, 0 will disable this function.
MinPlayTime Min playtime in hours a player has to have at UWE Hive to pass the plugins check
UseSteamTime If true, they plugin will try to fetch the playtime directly from steam and use it if accessable (Steam profile of use has to be public for that)
ForceSteamTime If set true the plugin will only use the playtime it got from steam and all players without a public steam profile will have a playtime of 0 hours. If steam should be down all player will pass the checks.
Kick If true blocked players will be kicked after given time.
KickTime Time in secounds until a player is kicked if KickBlockedPlayers is true.
KickMessage Message which is shown before a player is kicked time left until kick
WaitMessage Msg shown to users we haven’t got the data from yet and still waiting for answers.
⚠️ **GitHub.com Fallback** ⚠️