Code: Select all
Here's an example (defaults to current, day, month, and year):#-------------------------------------------------------------------------------
# Name: Player Logger
# Purpose: Logs when players are on and off the server. Can find what
# players were on the server during a specific time interval by
# using /findusers timeinterval1 timeinterval2 day month year
# Each time interval should be in the form hour:minute:second
# If the intervals are the same it finds the users logged on at
# that point in time. If day, month, or year is left out it will
# use the current day, month, or year at the time the command is
# used. Logs are saved on disconnect to the file specified at the
# beginning of this script.
#
# WARNING: YOU MUST CTRL-C EXIT THE SERVER FOR THE LOG TO SAVE. IT
# WILL NOT SAVE IF YOU JUST EXIT THE WINDOW
#
# Author: Gamemaster77
#-------------------------------------------------------------------------------/findusers 10:00:00 10:10:00
(jacksmack => 45.83.74.140) , (dan => 123.56.11.100) were logged on
