Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new columns: IP, FirstLogin, LastLogin, and OnlineTime to Hawk_Players table #143

Closed
redpoptarts opened this issue Apr 10, 2012 · 3 comments

Comments

@redpoptarts
Copy link

Add support for features already present in LogBlock and Guardian:

Track this information about players and store in the hawk_players table in the database...
(TEXT) IP Address
(DATETIME) First Login
(DATETIME) Most Recent Login
(TIME) Total Online Time

I rely on this information for various features in a plugin I'm working on:
http://dev.bukkit.org/server-mods/x-ray-detective/

It has the ability to process data from an LogBlock, and I will be adding support for HawkEye and Guardian soon. If HawkEye does not add this information to the MySQL tables, certain features will not be available to HawkEye users.

@oliverwoodings
Copy link
Owner

All this information already exists. Adding those columns. would simply be duplicating data.

@redpoptarts
Copy link
Author

You say this information already exists, but I can't find it anywhere in the database.

Would you mind pointing its location out to me? I have a mysql dump of a hawkeye users' database here in front of me, and am unable to find any of those 4 pieces of information. Perhaps I'm overlooking something?

@oliverwoodings
Copy link
Owner

The information isn't in the users table.

  • IP addresses are stored in the login entries in the main table
  • you can get the first time logged in by finding the first login entry for that person
  • you can find the last time logged in by getting the last login entry for that person
  • you can calculate the total time online by getting all the login and logout times and then working out the total.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants