Commit Graph

5226 Commits

Author SHA1 Message Date
Aurora Lahtela
1226aeaf1f Bump Java version to 11 2022-05-30 18:40:46 +03:00
dependabot[bot]
a36796d9e1
Bump geoip2 from 2.16.1 to 3.0.1 in /Plan (#2309)
Bumps [geoip2](https://github.com/maxmind/GeoIP2-java) from 2.16.1 to 3.0.1.
- [Release notes](https://github.com/maxmind/GeoIP2-java/releases)
- [Changelog](https://github.com/maxmind/GeoIP2-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/maxmind/GeoIP2-java/compare/v2.16.1...v3.0.1)

---
updated-dependencies:
- dependency-name: com.maxmind.geoip2:geoip2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-29 17:09:40 +03:00
dependabot[bot]
53c7b5e0b2
Bump caffeine from 2.9.2 to 3.1.1 in /Plan (#2376)
* Bump selenium-java from 4.1.4 to 4.2.0 in /Plan (#2378)

Bumps [selenium-java](https://github.com/SeleniumHQ/selenium) from 4.1.4 to 4.2.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.2.0)

---
updated-dependencies:
- dependency-name: org.seleniumhq.selenium:selenium-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mockitoVersion from 4.5.1 to 4.6.0 in /Plan (#2377)

Bumps `mockitoVersion` from 4.5.1 to 4.6.0.

Updates `mockito-core` from 4.5.1 to 4.6.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.5.1...v4.6.0)

Updates `mockito-junit-jupiter` from 4.5.1 to 4.6.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.5.1...v4.6.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump mysql-connector-java from 8.0.28 to 8.0.29 in /Plan (#2350)

Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 8.0.28 to 8.0.29.
- [Release notes](https://github.com/mysql/mysql-connector-j/releases)
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES)
- [Commits](https://github.com/mysql/mysql-connector-j/commits)

---
updated-dependencies:
- dependency-name: mysql:mysql-connector-java
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump caffeine from 2.9.2 to 3.1.1 in /Plan

Bumps [caffeine](https://github.com/ben-manes/caffeine) from 2.9.2 to 3.1.1.
- [Release notes](https://github.com/ben-manes/caffeine/releases)
- [Commits](https://github.com/ben-manes/caffeine/compare/v2.9.2...v3.1.1)

---
updated-dependencies:
- dependency-name: com.github.ben-manes.caffeine:caffeine
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-29 17:09:20 +03:00
Henri Schubin
bab0f273a2
Sponge API 8 port (#2119)
* Initial commit for Sponge API 8 port
* Change Sponge PAL version to include -sponge version suffix
* Comment out Nucleus w/ needs a update in ExtensionRegister
* Fix error with ArtifactVersion (from org.apache.maven) being relocated
* Correct todos related to getting values from ResourceKeys
* Cleanup sponge buildscript a bit
* Remove sout
* Update Extension-Sponge-Economy to 8.0.0-R0.3
* Convert to Sponge's new preferred way to load in jar resources
* Convert SpongeMessageBuilder and VelocityMessageBuilder into AdventureMessageBuilder
* Add back the command
* Update bStats to 3.0.0, re-enable bStats for Sponge
* Implement gamemode change mixin
* Remove unused import
* Update SpongeGMChangeListener's error logging as suggested

Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>

* PAL 5.1.0
* Add a check in SpongeCommand to update the ErrorLogger and Subcommand if the PlanSpongeComponent changes
* Combine try-with-resources in SpongePlanFiles#asStringResource

Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>
2022-05-29 17:08:50 +03:00
dependabot[bot]
5066806752
Bump HikariCP from 4.0.3 to 5.0.1 in /Plan (#2239)
Bumps [HikariCP](https://github.com/brettwooldridge/HikariCP) from 4.0.3 to 5.0.1.
- [Release notes](https://github.com/brettwooldridge/HikariCP/releases)
- [Changelog](https://github.com/brettwooldridge/HikariCP/blob/dev/CHANGES)
- [Commits](https://github.com/brettwooldridge/HikariCP/compare/HikariCP-4.0.3...HikariCP-5.0.1)

---
updated-dependencies:
- dependency-name: com.zaxxer:HikariCP
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-29 13:05:58 +03:00
Aurora Lahtela
b76ee7c358 Wrote a program to print all placeholders for easy wiki updates. 2022-05-28 11:29:50 +03:00
Aurora Lahtela
f047f4389a
Update versions.txt 2022-05-28 10:37:47 +03:00
Aurora Lahtela
8ee494f6e4 Don't replace placeholder if given player identifier is not found 2022-05-28 10:22:48 +03:00
Aurora Lahtela
3119f35cb6 Fix Map#keyset()#remove bug detected by sonar 2022-05-28 10:00:53 +03:00
Aurora Lahtela
c2b2b5635e Try fix sonar report path warning 2022-05-28 09:57:37 +03:00
Aurora Lahtela
01d618cdd3 Fix player_recent_kill and player_recent_death placholder off by one error 2022-05-28 09:46:50 +03:00
Aurora Lahtela
ecc08699ec Fix checkstyle 2022-05-28 09:38:31 +03:00
Aurora Lahtela
38b67272a6 Wrote dynamic tests for placeholders
Affects issues:
- Close #2076
2022-05-28 09:25:15 +03:00
Aurora Lahtela
253cfd251b Add support for :player at the end of player_ placeholders.
- Supports UUID
- Supports player name
- Will use issuing player if not found due to implementation limitations

Affects issues:
- Close #2130
2022-05-28 08:52:55 +03:00
Aurora Lahtela
79ff7d599f Add session duration placeholders
- %plan_player_current_session_length%: The length of active session (Online time)
- %plan_player_current_session_length_raw%: unformatted ms
- %plan_player_latest_session_length%: The length of active session or previous session if not online
- %plan_player_latest_session_length_raw%: unformatted ms
- %plan_player_previous_session_length%: The length of previous non-active session even if online
- %plan_player_previous_session_length_raw%: unformatted ms

Affects issues:
- Close #2211
2022-05-28 08:37:13 +03:00
Aurora Lahtela
ee1a69cb0c Fix checkstyle 2022-05-27 20:20:16 +03:00
Aurora Lahtela
5dd2d4392e Groundwork for #1050 2022-05-27 20:13:12 +03:00
Aurora Lahtela
26f76d9540 Implemented average players to Playerbase as Numbers
Affects issues:
- Close #1796
2022-05-27 19:15:33 +03:00
Aurora Lahtela
368f1e5002 Various fixes to transactions
- Hopefully fix user_id relation error once and for all.
- Set timezone to 00:00 properly when MySQL initializes connection

Affects issues:
- Close #1239
2022-05-26 21:51:22 +03:00
Aurora Lahtela
7aa84c27e4 Fix expired cookie removal 2022-05-26 09:57:29 +03:00
Aurora Lahtela
0538cea8be Fix issue where Plan holds server enable if database is slow
Affects issues:
- Fixed #2356
2022-05-26 09:44:55 +03:00
Aurora Lahtela
c1537681ab Try to find server registration error, did not. 2022-05-26 09:26:45 +03:00
Aurora Lahtela
24e955e428 Drop ThrowawayTransactions if database queues over 500 transactions.
This should reduce the likelihood of out of memory crashes due to slow database write performance.

Affects issues:
- Close #1963
2022-05-26 08:40:01 +03:00
Aurora Lahtela
a1d53b8910 Improve SessionEndTransaction to store player name on retry if user_id is missing 2022-05-26 08:17:23 +03:00
Aurora Lahtela
17d39f518d Fix user_id reference error on ShutdownDataPreservationTransaction 2022-05-26 08:16:00 +03:00
Aurora Lahtela
f3a5e27d8d Cancel any non repeating tasks when they exit 2022-05-26 07:46:20 +03:00
Aurora Lahtela
56081f0dc0 Bump Extension-ViaVersion and Extension-ProtocolSupport to R0.3
- Use SchedulerService instead of tasks for data inserts.
2022-05-26 07:33:26 +03:00
Aurora Lahtela
513900ed3d Fix typo in RemoveDanglingServerDataPatch 2022-05-25 14:41:46 +03:00
Aurora Lahtela
66ed6cfc5f Add missing NOT NULL constraint violation error codes 2022-05-24 22:17:56 +03:00
Aurora Lahtela
92ed27a097 Fix parsing of old version's ongoing session csv files 2022-05-24 21:43:22 +03:00
Aurora Lahtela
f6ece8333b Entered data for Online Activity Overview 2022-05-23 19:46:01 +03:00
Aurora Lahtela
7e1bd7f4a6 Playerbase overview page layout
- Moved some files
2022-05-23 18:58:06 +03:00
Aurora Lahtela
b942078485 Implemented more of the layout for server page
- Sessions accordion table headers
- PvP & Pve layout
- Playerbase graph layout
- Updated font awesome to 6.1.1
2022-05-22 10:57:06 +03:00
Aurora Lahtela
45baebfb01 Implemented some more structure for server page 2022-05-21 20:25:49 +03:00
Aurora Lahtela
e77a9ee8b5 Implemented rest of the graphs on Online Activity Overview 2022-05-21 13:43:49 +03:00
Aurora Lahtela
538eff10d9
Update versions.txt 2022-05-21 10:14:55 +03:00
Aurora Lahtela
62f06b4901 Prevent further transactions from executing if FatalDBException occurs
Affects issues:
- Fixed #2365
2022-05-21 09:58:07 +03:00
Aurora Lahtela
de276691a0 Fix wrong ping series translation labels 2022-05-21 09:50:57 +03:00
Aurora Lahtela
030dff7e0a Fallback to relative address if Alternative_IP is misconfigured.
Affects issues:
- #2260
2022-05-21 09:47:10 +03:00
Aurora Lahtela
6c5c9ce913 Fix terminal icon not loading for console registered users
Affects issues:
- #2260
2022-05-21 09:38:26 +03:00
Aurora Lahtela
b52f257f3c Insert html into nickname list on React version of player page
Affects issues:
- Fixed #2329
2022-05-21 09:33:03 +03:00
Aurora Lahtela
f36f1202fc Implemented player ping graph on Frontend BETA player page
Affects issues:
- Close #2258
2022-05-21 09:25:27 +03:00
Aurora Lahtela
52b8afe6cb Store join addresses separately and link to plan_sessions table for time data.
Affects issues:
- #2362
2022-05-20 19:32:00 +03:00
dependabot[bot]
a97489ecd2
Bump testContainersVersion from 1.17.1 to 1.17.2 in /Plan (#2371)
Bumps `testContainersVersion` from 1.17.1 to 1.17.2.

Updates `testcontainers` from 1.17.1 to 1.17.2
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.17.1...1.17.2)

Updates `junit-jupiter` from 1.17.1 to 1.17.2
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.17.1...1.17.2)

Updates `nginx` from 1.17.1 to 1.17.2
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.17.1...1.17.2)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.testcontainers:junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.testcontainers:nginx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-20 16:30:45 +03:00
dependabot[bot]
b4017604bf
Bump com.github.node-gradle.node from 3.2.1 to 3.3.0 in /Plan (#2369)
Bumps com.github.node-gradle.node from 3.2.1 to 3.3.0.

---
updated-dependencies:
- dependency-name: com.github.node-gradle.node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 08:55:10 +03:00
Aurora Lahtela
1d9a6b8940
Update versions.txt 2022-05-14 11:05:52 +03:00
Aurora Lahtela
8bbbde4556 Fix registering plan_user row if missing when required
There was one error code for MySQL that used wrong message context to detect the missing user_id properly.

Wrote tests for all the extra functionality ensuring no exceptions occur.

Affects issues:
- Fixed #2361
- Fixed #2343
2022-05-14 11:00:34 +03:00
dependabot[bot]
0c7d00169f
Bump daggerVersion from 2.41 to 2.42 in /Plan (#2366)
Bumps `daggerVersion` from 2.41 to 2.42.

Updates `dagger` from 2.41 to 2.42
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.41...dagger-2.42)

Updates `dagger-compiler` from 2.41 to 2.42
- [Release notes](https://github.com/google/dagger/releases)
- [Changelog](https://github.com/google/dagger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/dagger/compare/dagger-2.41...dagger-2.42)

---
updated-dependencies:
- dependency-name: com.google.dagger:dagger
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.dagger:dagger-compiler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-10 08:48:49 +03:00
Aurora Lahtela
713f096c3c
Update versions.txt 2022-05-07 10:49:57 +03:00
Aurora Lahtela
6fa552ca5e Register plan_user row if missing when required
- PingStoreTransaction
- GeoInfoStoreTransaction
- SessionEndTransaction

Affects issues:
- Fixed #2361
- Fixed #2343
2022-05-07 10:40:50 +03:00