VcLogin v2 by Floxen
discord: swipesznx6.
email: pavelkalas2048@seznam.cz
!!! EXPERIMENTAL TOOL !!!

FOR ANY PRIVATE CUSTOMIZATIONS, MESSAGE ME AT DISCORD: swipesznx6. (with dot at end too)
ALSO PLEASE REPORT ALL BUGS OR CRASHES TO MY DISCORD, THANKS!

INFORMATION:
 This application is for adding a login system to Vietcong server.

 To allow admins to manage /stopreg and /cooldown, you need to put their EXACT names in admins.ini file!

INSTALLATION:
 0. THIS REQUIRES VCGUARD!! (minimal version v10, but works fine with v12.1)
 1. Extract ALL provided files into "vietcong server" directory.
 2. Change the plugins/vclogin.ini by your own
 3. Run VcPluginInjector.exe and just set whatever u want and "Start" server.
 4. Join to started server and use /register for first time. Next time use /login

HOW TO ADD ADMIN:
 1. Find or create file "admins.ini" and put EXACT NAME of player (one player = one line)
 2. Then reboot/start server and you can use ADMIN commands!

IN-GAME COMMANDS:
 ALL:
  /login [password]          - Login as registered player with password
  /register [password]       - New registration of player
  /passwd [password]         - Changes password players account

  /dm [id] [message]         - Sends private message to a specified player (with sender name included)
  /pm [id] [message]         - Sends private message to a specified player (without sender name included)

  /info                      - Shows customly defined string "custom_message" (check vclogin.ini)
  /about                     - Shows creator of this app.
  /swap                      - Swaps player's side from VC to US and from US to VC
  /autologin                 - Enables autologin for nickname and IP
  /recovery [code]           - Resets player's lost password access, when you use this, immediatelly change your password to new one
                               and save your NEW recovery code in console (F12 or ;) or use command /recoverycode while you are logged
  /recoverycode              - Prints out your recovery code (to chat) works only while you logged!

 ADMINS ONLY:
   /stopreg [minutes]        - Stopping the registration for some amount of time.
   /cooldown [seconds]       - Prevents player's chat spamming, sets time for one message in X amount of time (check vclogin.ini)
   /guestmode [1/0]          - Enables or disables guestmode
   /guestmodespawndelay [X]  - Sets time which players need wait for, before get spawned, minimum: 2 - maximum: 360 (in seconds)

SERVER CONSOLE COMMANDS:
  sayto [id] [message]       - This adds possiblity for sending private messages to player from SERVER CONSOLE (as Host on DC), vcguard cant do it!
  userlist                   - Shows list of registered users, ID, nick and registration date
  dropuser <id>              - Removes user from database
