Commit Graph

39 Commits

Author SHA1 Message Date
Aurora Lahtela
e3bea9ee77 Add online player names to player tab completion
Affects issues:
- Close #2216
2022-11-22 13:25:12 +02:00
Aurora Lahtela
fd625b5002 Remove extra bits after \u0000 in join addresses
Affects issues:
- Fixed #2710
2022-11-08 16:38:09 +02:00
Henri Schubin
c49276369f
Component API by Vankka (#2665)
Adds a new Component API that allows converting between color code representations in Strings
2022-10-16 13:21:49 +03:00
Aurora Lahtela
cbc880c1d3 Improve database error messages
- Don't log "database is closed" when query tries to execute after database close
- Log better error help when mysql fails to connect

Affects issues:
- Fixed #2499
2022-09-02 18:49:36 +03:00
Aurora Lahtela
7dce52245f Remove some uses of PlanPlugin#getDataFolder (deprecated) 2022-08-31 12:48:19 +03:00
Aurora Lahtela
3eff46523d Test and fix user move and combination transactions 2022-08-27 15:20:23 +03:00
Aurora Lahtela
7b41165af5 Add /plan db migrate_to_online_uuids command 2022-08-21 12:19:52 +03:00
Aurora Lahtela
79c4c8d667 Relocate slf4j on Fabric
Previously broke things because of missing mergeServiceFiles() call
2022-08-17 13:44:10 +03:00
Aurora Lahtela
2527c37d61 Fixed ALPN not being available for Fabric
- Added mergeServiceFiles() to shadow configuration on fabric

Affects issues:
- Fixed #2517
2022-08-17 13:23:59 +03:00
Aurora Lahtela
b646e18c68
Fix fabric join address gathering (#2546)
- Refactored player online listeners to move common. often changed logic to common package
- Changed method fabric uses to get join address to use the client handshake packet which has the address
- Added command `/plan db removejoinaddresses {server}` to allow removing invalid join address data
- Changed build pipeline to always build jars even if tests fail
- Disabled one flaky test

Affects issues:
- Closed #817
- Fixed  #2526
2022-08-14 20:35:32 +03:00
Drex
053fe2528b
Update fabric to 1.19.1 (#2519) 2022-08-01 18:11:43 +03:00
Aurora Lahtela
42d2d8028e Exclude extra stuff from fabric jar 2022-07-15 08:58:21 +03:00
Aurora Lahtela
37f11e3269 Remove PlanSystem#getErrorLogger
This code was improper use of dagger for dependency injection,
and could be fixed by introducing new method to Component classes
that gives the initialized ErrorLogger directly.
2022-07-15 08:34:18 +03:00
Aurora Lahtela
b0be4f296d Use plugin classloader for thread context when initializing system
This allows ServiceLoader to find slf4j-nop provider for Jetty
preventing SLF4J "No provider" error

Affects issues:
- Fixed #2438
2022-07-15 08:21:23 +03:00
Aurora Lahtela
8f239b010c
Add Swagger & Swagger UI (#2470)
* Adds swagger dependencies and annotations for json endpoints for documentation
* Add swagger ui to react project
* Access control to swagger endpoints
* Include swagger.json in jars using custom configuration

Also:
* Reworked project shadow configurations to avoid shadowing shadow versions of modules

Why: Extra dependencies were being included when using shadow scope

What:
- modules no longer depend on shadow configurations,
  which speeds up IDEA indexing after build considerably
  (No need to index *-all.jars)
- 'shadow' scope is now used for artifacts that need to be included
- 'shadow' scope is also 'api' so that modules that depend on common
  can import the libraries. This may cause issues in projects
  depending on Plan so this may need to be reconsidered
- Relocations and exclusions were moved to plugin module
  org.slf4j is now included in 2 locations which may cause issues.
  Needs testing with servers
- Found out that all Extension dependencies include junit as compile
  scope which caused it to be included.

Affects issues:
- Close #1890
2022-07-13 21:21:20 +03:00
Rsl1122
aa67794881 Remove unnecessary files from jar and relocate Jetty 2022-07-03 10:54:01 +03:00
Aurora Lahtela
d34172412c Fix join address gathering
Affects issues:
- Fixed #2413
2022-06-11 19:02:36 +03:00
Antti Koponen
4196141db1
Fixes for Fabric 1.19 by Kopo (#2419)
* Gradle 7.4.2
* Build changes for MC 1.19

- Updated loom to minor version 0.12 & moved to root project
- Updated mappings, command API, fabric API & loader version
- Moved Selenium to common module because of a conflict with loom's dependency resolution

* Add remap folder to .gitignore
* Fix version token replacement
* Update to Minecraft 1.19
* Don't forget the pipelines

Affects issues:
- Fixed #2417
2022-06-10 16:21:53 +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
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
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
Aurora Lahtela
e6f3377bc2 Filter fabric player move events based on previous location
Affects issues:
- Fixed #2324
2022-04-15 12:46:14 +03:00
Aurora Lahtela
69c54fb5cb Fix some issues with data registering for new users 2022-04-11 19:08:05 +03:00
Aurora Lahtela
47e74f5ad5 Use ConcurrentHashMap for ignore afk permission checks
Affects issues:
- Fixed #2289
2022-02-28 19:23:59 +02:00
Risto Lahtela
1bffefe931 Fix fabric command issues:
- Made only players support chat events
- Added hashcode and equals needed for storing in cache (Confirmation uses CMDSender as key)
- Hacky fix for running tasks when plugin is disabled

Affects issues:
- Fixed #2183
2022-01-09 13:29:47 +02:00
Risto Lahtela
a7478645bd Reduce the amount of tasks used for upkeep
- Ping gathering now uses a map of timestamps
  - Removes a task that waited for ping data to be reliable (one task / join)
- Cookie expiration now uses a map of timestamps
  - Removes a task that waited for cookie to expire (one task / login cookie)

Affects issues:
- Possibly fixed #1984
2022-01-06 15:43:48 +02:00
Antti Koponen
f096d456c6
Properly log fabric deaths where killer is null (#2184)
Affects issues:
- Fixed #2182
2021-12-03 15:47:34 +02:00
Henri S
efd3b75a29
Database Driver downloading (#2144)
Affects issues:
- Fixed #1944
2021-10-31 13:16:47 +02:00
Risto Lahtela
fb998fdc90 Changed mysql and sqlite to use implementation instead of shadow
this is to exclude things like google/protobuf folder properly
The sql drivers are still included
2021-10-30 10:07:06 +03:00
Aurora Lahtela
ebb1108969
Comment out slimjar related configuration (#2138) 2021-10-27 18:43:14 +03:00
Emilia Dreamer
4d151d45fa
Specialized Fabric and Sponge version checkers (#2125)
Affects issues:
- Close #936
- Close #2093.
2021-10-13 18:00:20 +03:00
Antti Koponen
bcfd52d76b
Slimjar 1.3.0/1.2.6 & custom Injectables for Fabric and Velocity (#2126)
* Update slimjar to 1.3.0/1.2.6
* Add custom Injectable impl for Fabric module
* Add custom Injectable impl for Velocity
2021-10-13 17:44:34 +03:00
Antti Koponen
d6aa07d93f
Fabric fixes (#2089)
* Fix SonarCloud bugs

* Remove color codes from console messages

* Replace version string in mod.json

* Advance dependency initialization to pre-enable hook

* Resolve config folder using correct method
2021-09-18 22:38:12 +03:00
Risto Lahtela
0921d1550f Remove OP->true from fabric AFK permission check
On bukkit default behavior for afk permission is false,
but it was unclear and during fabric implementation also ops were given same
behavior when permissions are not available.

Now OPs no longer have their AFK time ignored.

Affects issues:
- Fixed #2059
2021-09-10 18:42:49 +03:00
Risto Lahtela
372003591d Relocated Plan fabric configuration folder 'mods' -> 'config'
Affects issues:
- Fixed #2055
2021-09-10 18:37:56 +03:00
Antti Koponen
48f9a430c5
Fabric platform updates (#2048)
- Increased Gradle max heap to 1 GB to avoid running out of heap space on build
- Added Slimjar for runtime dependency management
- Modified platform logger to parse JUL.Logger-format parameters to log4j format
- Added logic to properly handle InvalidArgumentExceptions with commands
- Updated loom to 0.9.+, fixes annoying console spam when building
- Moved mod JSONs to fabric's resources folder to correctly add refmap key to mixins.json
- Updated mappings & API

Affected issues:
- Fixed #2045
2021-08-09 07:36:15 +03:00
Antti Koponen
75c1e2a39b
Fix fabric ServerProperties binding (#2030) 2021-07-24 16:23:18 +03:00
Antti Koponen
5e0fe761b2
Fix getErrorLogger NPE (#2029) 2021-07-24 16:02:24 +03:00
Antti Koponen
67153e8fc5
Fabric Platform Implemenation (#2018)
Adds a fabric specific Plan module that builds a separate jar.

Co-authored-by: Vankka <vankka.main@gmail.com>
Co-authored-by: DrexHD <nicknamedrex@gmail.com>

Affects issues:
- Close #1956
2021-07-24 14:10:48 +03:00