Commit Graph

175 Commits

Author SHA1 Message Date
Brandon Sturgeon
424b989776 self 2020-08-29 15:15:10 -07:00
Brandon Sturgeon
a9716be9a1 Address PR comments 2020-08-29 15:15:10 -07:00
Brandon Sturgeon
f05efe2af2 Apply suggestions from code review
Co-authored-by: Samuel Williams <33094920+samuelWilliams99@users.noreply.github.com>
2020-08-29 15:15:10 -07:00
Brandon Sturgeon
f7fbcd87e6 Update lua/cfc_time/server/storage_options/mysql.lua
Co-authored-by: Samuel Williams <33094920+samuelWilliams99@users.noreply.github.com>
2020-08-29 15:15:10 -07:00
Brandon Sturgeon
c8ec776efe More logging + fixes 2020-08-29 15:15:10 -07:00
Brandon Sturgeon
547936b462 More log lines, start the query 2020-08-29 15:15:10 -07:00
Brandon Sturgeon
13711faa37 Add session duration limits 2020-08-29 15:15:10 -07:00
Brandon Sturgeon
3f4452d47a Fix returning player total time 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
19becae15a Add stupid utime mock 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
965e94520c Update utime_compat.lua 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
f11f03b620 Reverse player init logic 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
3bbfef03f8 exists -> firstVisit 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
14f2c381f4 Refactor 2020-08-28 14:44:01 -07:00
Brandon Sturgeon
eb88b20a0b
Update README.md 2020-08-28 02:03:39 -07:00
Brandon Sturgeon
53b99b1a42 Fix sqlite method 2020-08-27 11:34:31 -07:00
Brandon Sturgeon
06cfcf66d0 Refactor newplayer hook for sqlite 2020-08-27 11:34:31 -07:00
Brandon Sturgeon
2a88d8e0a4 Call the hook before getting total time 2020-08-27 11:34:31 -07:00
Brandon Sturgeon
1d587a0157
Merge pull request #16 from CFC-Servers/refactor
Restructure
2020-08-27 00:46:31 -07:00
PLally
e57aa81e3a remove merge conflict 2020-08-27 03:13:19 -04:00
PLally
982f0d5b65 merge master 2020-08-27 03:11:45 -04:00
PLally
b25621e0c3 use storageType config option, add realm config option 2020-08-27 03:06:33 -04:00
PLally
30fca18a9d spacing and load config after setDefaults 2020-08-27 03:06:33 -04:00
PLally
add84326a8 change default 2020-08-27 03:06:33 -04:00
PLally
1c09a4e8bb fix extra space 2020-08-27 03:06:33 -04:00
PLally
cc42f332aa add mysql config options 2020-08-27 03:06:33 -04:00
PLally
1104779af6 save config on load 2020-08-27 03:06:33 -04:00
PLally
13a1dede73 use CFCTime table 2020-08-27 03:06:33 -04:00
PLally
8450edea69 initial config system 2020-08-27 03:06:33 -04:00
PLally
0497242d95 activeSessions -> sessions 2020-08-27 02:58:30 -04:00
PLally
3ee554af61 pending updates -> activeSessions, sessions -> sessionIDs 2020-08-27 02:55:57 -04:00
PLally
d75fdbe3f7 remove module loading, simplify addon layout 2020-08-27 02:32:42 -04:00
Brandon Sturgeon
6c4897aa9c Add default values to nw getters 2020-08-26 17:33:57 -04:00
Brandon Sturgeon
02eab442c3 fix batch count usage 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
72cb414b1c Consistent capitalization 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
13e50a0b4d Convert pendingUpdates to use steamIDg 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
ab0d20a1b7 steamId -> steamID 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
0221792a4f steamId -> steamID 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
d0911ce503 Make mock utime table 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
64599e3c38 Move repeat calculation into outer scope 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
c202222b74 New proposal for UTime compatability 2020-08-26 14:23:00 -07:00
Brandon Sturgeon
ca6cc75a5d Fix stupid logging error 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
bd439a442f Refactor because MySQLOO mean 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
2b4684e4c7 Change new user query, fix new user check 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
e2bddfb144 Create index on steam id during table creation 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
120dfc20d8 Possible simplification refactor 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
77d5cba980 Do glua's job for it 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
c1365acdda Refactor player init 2020-08-26 01:52:11 -07:00
Samuel Williams
d800e4a9bd Fix userExists query 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
29d0f08f0a Make all SELECT statements require a db lock 2020-08-26 01:52:11 -07:00
Brandon Sturgeon
c2125380c0 Refactor again, add more logging 2020-08-26 01:52:11 -07:00