Commit Graph

270 Commits

Author SHA1 Message Date
Lukas Rieger (Blue) 240ca6c00e
Fix some issues with the new sql-storage implementations 2024-04-07 12:55:41 +02:00
Lukas Rieger (Blue) f66437ac83
Apply spotless fixes 2024-04-06 01:33:24 +02:00
Lukas Rieger (Blue) fdf242acdf
Rework storages to make them extensible with addons 2024-04-06 01:26:16 +02:00
Lukas Rieger (Blue) 757979b7b4
Implement equals and hashCode for BlueMapMap and BlueMapWorld 2024-03-24 00:07:10 +01:00
Gerber Lóránt Viktor a847e247e5
Add mechanism for retrieving BlockEntity data (#524)
* Add mechanism for retrieving BlockEntity data

This commit adds a mechanism for retrieving block entity data.
Block entity data is required to support for example text on signs,
banner patterns, or mods such as Domum Ornamentum.

* Fix the coordinate-packing for block entity-loading

This commit fixes the incorrect shifting of bits when
packing the chunk-local coordinates of a block entity
into a 64-bit long for lookups.

* Change mapping type of BlockEntity lookups

This commit changes the type stored for BlockEntity
mappings from a class of the type associated with the
ID to a method reference to its constructor.

* Tidy BlockEntity mappings

This commit introduces a small functional interface
to make the type less ungodly. Also silences the warning
about referencing subclasses in the superclass, it is
fine in this case, we're just storing a reference to
the constructor.

* Add missing license headers

The license headers were missing. Oops.
2024-03-20 23:23:03 +01:00
Lukas Rieger (Blue) 908789a815
Add more cache-control headers to integrated webserver 2024-02-25 02:15:34 +01:00
Lukas Rieger (Blue) 0d36a0f70b
Fix region file watcher ignoring linear files 2024-02-24 22:09:25 +01:00
Lukas Rieger (Blue) 35c236e9ce
Turn storage-enum into a registry 2024-02-24 14:11:56 +01:00
Lukas Rieger (Blue) 122ba83ebb
Correct content-type header and response for empty map tiles 2024-02-24 10:44:25 +01:00
Lukas Rieger (Blue) 6e68a8f0e0
[breaking] Switch hires tile format to prbm (modified prwm) 2024-02-23 17:32:07 +01:00
Lukas Rieger (Blue) ff1e38a7e1
Fix Map-Updates not working correctly 2024-02-22 12:58:57 +01:00
TechnicJelle 2dd7a0a9c2
Log user-added Scrips & Styles when they load in (#506) 2024-02-14 21:23:27 +01:00
Lukas Rieger (Blue) 81e8da3b70
Fix storage performance 2024-02-08 13:18:49 +01:00
Lukas Rieger 16981f2797
Refactor World-Management and Region/Chunk-Loading (#496)
* Implement PackedIntArrayAccess

* First working render with BlueNBT

* Progress converting chunkloaders

* Core rewrite done

* WIP - Restructuring configs and world-map mapping

* WIP - Compiling and starting without exceptions :)

* Fix cave detection

* Ensure configuration backwards compatibility (resolve dimension from configured world if missing)

* Implement support for 1.16+ chunks

* Implement support for 1.15+ chunks

* Implement support for 1.13+ chunks and some fixes

* Also find worlds based on their id again in BlueMapAPI

* Improve autogenerated config names

* Implement equals for all ServerWorld implementations

* Get rid of var usage
2024-02-07 20:43:37 +01:00
Lukas Rieger (Blue) 61f883b134
Add -m option to cli, which allows to filter the maps that should be loaded and rendered 2024-01-23 19:35:25 +01:00
Lukas Rieger (Blue) a703a92357
Remove pretty-printing from settings.json 2024-01-17 18:27:44 +01:00
TechnicJelle 7c3485363e
Fix grammar in BlueMapService.java (#494) 2023-12-14 16:26:31 +01:00
Lukas Rieger (Blue) 77c1e42009
Change default nether and end configs to have a better void color 2023-11-19 11:22:43 +01:00
TechnicJelle 48445db7b5
Add map config for having a different void colour (#477)
* Added global webapp option for not having a void

* Fix for non-default lighting conditions

* Replace `isVoid` with whole `voidColor` feature!

* Default void colour should be black

* And now the default sky colour can also be set back to what it was

* Fix the low-res void colour

* Add config option for the new void colour setting!

(I hope I haven't forgotten any place to add it, but it does work, so I don't think so..?)
2023-09-30 23:42:37 +02:00
TechnicJelle 7047df73d0
Made webserver binding logging less confusing (#474)
People often think "0.0.0.0" is the IP they should connect to when BlueMap logs `WebServer bound to: /0.0.0.0:8100`
Or they see the IPv6 address being logged, and think BlueMap is only running on IPv6.
2023-09-07 08:41:50 +02:00
Lukas Rieger (Blue) 7156993323
Make webserver resource-closing more watertight against potential leaks 2023-09-05 14:22:30 +02:00
Lukas Rieger (Blue) 4aadaeb2e0
Fix indentation of frozen status on map list 2023-08-10 16:09:57 +02:00
Lukas Rieger (Blue) 1f7f51c1e1
Add webapp option to default to flat-view 2023-07-04 14:42:12 +02:00
Lukas Rieger (Blue) 1b2dc45b4b
Add debug-log, improve logging in general and fix weblogger not closing correctly 2023-07-01 09:44:19 +02:00
Lukas Rieger (Blue) 15f5e8fd00
Fix default log file name 2023-06-29 13:51:41 +02:00
Lukas Rieger (Blue) 0ebea9982f
Apply Spotless fixes for BlueMapCommon 2023-06-29 13:42:56 +02:00
Lukas Rieger (Blue) d570884def
Add advanced webserver logging + settings 2023-06-29 13:37:31 +02:00
Lukas Rieger (Blue) 8f97b08eb5
Use string-builder in verbose logger 2023-06-29 08:38:46 +02:00
Lukas Rieger (Blue) 4141d21a70
Add support for xff header in verbose web logger 2023-06-29 08:29:53 +02:00
Lukas Rieger (Blue) 0ac939a644
Always initialize PlayerSkinUpdater to be available to API 2023-06-22 08:21:36 +02:00
Lukas Rieger (Blue) 987015b617
Fix wrong config-key in plugin.conf template 2023-06-21 09:05:53 +02:00
Lukas Rieger (Blue) fdd4713dfb
Fix command permission for deleting a map from a storage 2023-06-20 22:05:24 +02:00
Lukas Rieger (Blue) b4b3e72d51
Make configs generate paths with forwardslashes whenever possible 2023-06-19 15:44:57 +02:00
Lukas Rieger (Blue) 85f4735050
Fix hours in AM/PM format instead of 24 2023-06-18 13:51:07 +02:00
Lukas Rieger (Blue) 2e572ddb11
Fix status command formatting and add last render times to status and maps commands 2023-06-18 13:46:41 +02:00
MrSolarius f149b823a7
Add support for postgres databases (#443)
* Refactor : wrap every single SQL query inside an interface

* Feat : create every SQL request for postgres

* Refactor : rename SQLQueryAbstractFactory to SQLQueryFactory

* Feat : add dialect settings to blue map !

* Feat : Create two new storageClass for different storage approche

* Feat : add read BYTEA support

* Fix : remove unuseful println

* Fix : remove edited sql.conf

* Refactor / Feat : support for mysql

* Lots of tiny tweaks

---------

Co-authored-by: Lukas Rieger (Blue) <TBlueF@users.noreply.github.com>
2023-06-12 22:55:44 +02:00
TechnicJelle c807699c7c
Add port-in-use check (#440)
* Add port-in-use check to plugin

* Add port-in-use check to CLI
2023-06-08 23:12:20 +02:00
Lukas Rieger (Blue) e2037e9698
Run status-command in separate thread 2023-05-15 17:40:47 +02:00
Lukas Rieger (Blue) 083c6c06c2
Improve progressEstimation function 2023-05-15 17:18:25 +02:00
Lukas Rieger (Blue) 742f96db6a
Merge branch 'master' of https://github.com/BlueMap-Minecraft/BlueMap 2023-05-15 17:01:28 +02:00
Lukas Rieger (Blue) f1f2336dff
Remove syncronization from estimateProgress() function 2023-05-15 17:01:10 +02:00
z-glitch 463f5cb120
Update URL for 3rd party addons and tools. (#431) 2023-05-14 11:55:35 +02:00
Lukas Rieger (Blue) 659fb99eb6
Avoid NPE if accessing the API while bluemap is unloaded 2023-05-14 02:18:31 +02:00
Lukas Rieger (Blue) 92e5300c1e
Clear chunks from cache when starting a render-task for them 2023-05-09 22:09:18 +02:00
Antti Ellilä f467220400
Start rendering after everything else is loaded (#425)
To attempt to fix the weirdness with tile filters not working at startup
2023-05-07 19:24:43 +02:00
Lukas Rieger (Blue) 94dbd372dc
Fix typo 2023-05-01 20:43:16 +02:00
Lukas Rieger (Blue) 004f296b5e
Add storages command 2023-05-01 20:41:30 +02:00
Lukas Rieger (Blue) 5e17df6b2a
Fix locking on the same lock that is used for loading causes the server to freeze 2023-03-13 19:30:31 +01:00
Lukas Rieger (Blue) 86b7e752ee
Improve default sql.conf (Jelle edition) 2023-03-11 11:47:08 +01:00
Lukas Rieger (Blue) 4181732db7
Improve default sql.conf 2 2023-03-11 11:45:27 +01:00