Commit Graph

42 Commits

Author SHA1 Message Date
Vlammar 7729565a13 Pr commentaries resolved 2021-11-14 13:39:29 +01:00
Vlammar 52ba80ab70 Fixed an issue with image loading on paper and added allow list for image hosting sites 2021-11-11 21:41:37 +01:00
Amaury Carrade 01d9a5e99a Updated copyright
CeCILL licence in a dedicated file + headers updated.
2021-04-12 14:34:16 +02:00
Vlammar cc58b1d320 Checkstyle added and refactor 2020-12-10 22:13:05 +01:00
Vlammar 509e379386
Merge pull request #119 from zDevelopers/feature_give_command
Add give command
2020-12-09 21:59:58 +01:00
Vlammar 497205fc81
Merge branch 'indev' into feature_give_command 2020-12-09 21:53:06 +01:00
Vlammar fc22e5a5a9 Updated to quartz lib yay! :D 2020-11-15 19:33:16 +01:00
Vlammar c769f50835 bug fix and typo 2020-11-07 01:04:24 +01:00
Vlammar c123455922
Merge branch 'indev' into feature-update-function 2020-11-05 01:17:33 +01:00
Vlammar f4cfe934a7 fixed indent 2020-08-20 23:55:16 +02:00
Vlammar 965ebe6605
Update src/main/java/fr/moribus/imageonmap/image/ImageRendererExecutor.java
Co-authored-by: Amaury Carrade <amaury@carrade.eu>
2020-08-18 00:14:38 +02:00
Vlammar 19d79d2da0
Update src/main/java/fr/moribus/imageonmap/image/ImageRendererExecutor.java
Co-authored-by: Amaury Carrade <amaury@carrade.eu>
2020-08-18 00:12:45 +02:00
Vlammar 40479e2a37
Update src/main/java/fr/moribus/imageonmap/image/ImageRendererExecutor.java
Co-authored-by: Amaury Carrade <amaury@carrade.eu>
2020-08-17 23:33:30 +02:00
Vlammar bef12a235a Added scaling support, remove an unused print 2020-07-16 14:07:08 +02:00
Vlammar f007e8e0b9 Code cleanup 2020-07-16 02:59:22 +02:00
Vlammar b01f133639 Update working 2020-07-16 02:50:17 +02:00
Griffin Kubesa b8c1494f58
Fix saving images (#112) 2020-07-09 00:13:18 +02:00
Vlammar 219869c82b added images flush and removed useless gc.dispose 2020-07-08 09:06:54 +02:00
Vlammar e894fb4f35 Code cleanup, and adding more extensions 2020-07-02 16:04:41 +02:00
Vlammar 0040beeabf improvement for imgur links 2020-07-02 15:27:23 +02:00
Arnaud Lier 87edc2da48
Add user agent to URLConnection
This could help the server not denying (403) the request.
2020-06-17 15:34:37 +02:00
Amaury Carrade c8c26a3cc6
Fixed bypass permission. 2020-06-14 15:14:52 +02:00
Amaury Carrade 5701296d67
Licenses are a mess in this project. (#96)
* Fixed software licenses in README & license header template.
* Fixed license headers on all files.
2020-06-14 14:29:18 +02:00
Vlammar 11b4ad6612 Ver 4.0 2020-06-14 12:04:09 +02:00
Vlammar 326e90d33f
Merge branch 'indev' into 4.0_dev 2020-06-14 03:26:09 +02:00
kirbykirby56 69fcb0c241 Add save-full-image and limit-x/y 2020-06-09 18:40:00 +02:00
valentin f79674169e added map on ground/ceilling, fixed renderer bug 2020-06-06 22:25:08 +02:00
Amaury Carrade fd483d6088 1.13 + 1.14 compatibility: the beginning.
- The plugin should be compatible with 1.13+. Compatibility with 1.12- has been dropped; use old versions for them.
- Map IDs are integer instead of shorts now, as the maps limits has been dropped by Minecraft.
- ImageOnMap items are now green to differentiate them. Map parts are lime.
- Removed glow on maps, as zLib's glow effect is not compatible with 1.13+.
2019-10-26 14:26:12 +02:00
Adrien Prokopowicz 4653008e5a
* NEW: Added stretch and cover image resizing modes 2018-02-24 04:09:40 +01:00
Adrien Prokopowicz 47fb9737cb
* NEW: Added width and height parameters to the resize option. 2018-02-23 03:06:43 +01:00
Amaury Carrade b9259280dd
Improved help files and used flags instead of double commands.
* NEW: improved help files, by adding missing helps and fixing display of others.
* NEW: there is now only one deletion command with a --confirm flag, leading to a less-confusing help for players.
* BUG: removed a very old Workers API test (from before zLib!). I feel a little sorry for him but eh, that's the rules.
* BUG: fixed untranlated title in the map details GUI.
2017-03-12 20:05:32 +01:00
Amaury Carrade 706ca5601d
Internationalization of the plugin.
* NEW: the plugin can now be translated.
2016-05-21 18:55:32 +02:00
Amaury Carrade 987efea203
The plugin configuration now uses the zLib config mecanisms.
* NEW: now using the zLib configuration component to manage the configuration.
2016-05-21 13:37:04 +02:00
Adrien Prokopowicz b5d41b25d0 * NEW: Improved rendering error messages. Fixes #22. 2016-04-02 21:45:03 +02:00
Adrien Prokopowicz e942aabeda Various fixes and improvements on map GUIs.
* NEW: MapItemManager: new methods to create corresponding map items.
* BUG: MapDetailGui: Picking up a part now gives the player the actual 
  map instead of the display item.
* BUG: ImageRendererExecutor: The worker's name is now the correct one.
* BUG: Picking up a map or putting it in the hand from an inventory now
  correctly initializes the map.
2016-04-02 00:43:09 +02:00
Amaury Carrade 2443574316 ImageOnMap is now a zLib plugin.
* NEW: added zLib dependency.
* NEW: removed all classes moved to the zLib, and updated the references to these classes to the zLib ones.
* BUG: fixed some GUI navigation problems.
* NEW: implemented the items renaming into the details GUI.
2015-12-29 19:12:36 +01:00
Prokopyl 2a49d94d1e Migration is now fully functional !
* NEW: Refactored PluginLogger for multi-thread usage and message formatting.
* NEW: Posters and maps that could not be migrated are now saved back
  to their original files.
* NEW: Moved the maptool-migration command to the /maptool migrate subcommand.
* NEW: PosterMap can now be used without having row/column count information.
* NEW: Added a detailed help message for the migration command.
* BUG: Fixed UUIDFetcher's HTTP GET request sending.
* BUG: Fixed Name->UUID time-specific matching.
* OPT: Removed the CommandPermission structure, it is actually useless.
* OPT: Renamed Migrator to MigratorExecutor.
2015-04-12 01:28:05 +02:00
Prokopyl b87dfdf231 Implemented the map item limit (global and per-player).
* NEW: Implemented the per-player map limit.
* NEW: Implemented the global map limit.
* NEW: The map manager can now raise exceptions for some requests.
* NEW: The configuration can now have deprecated field names. 
  These fields are automatically migrated if present in the config file.
* NEW: The configuration now writes default values when loading the plugin.
* BUG: Fixed configuration loading.
* BUG: Fixed player store loading's thread-safety.
* OPT: Cleaned up map loading events initialisation.
2015-04-04 06:05:47 +02:00
Prokopyl 860fed25e5 * OPT: The map database is now thread-safe. 2015-03-31 20:48:44 +02:00
Prokopyl 244a3d7122 * BUG: Fix poster image saving when rendering. 2015-03-30 00:44:44 +02:00
Prokopyl 5c9feddd6e Added image-to-map rendering.
* NEW: Implemented the RendererExecutor for splitted and scaled images.
* NEW: Implemented image saving.
* NEW: Worker callbacks now take as a parameter the return value of the Runnable.
* NEW: Worker runnables can now request data from the main thread using the Future API.
* BUG: null is now a valid value for the "name" field.
* BUG: Fix map loading for Posters and Single maps.
* OPT: The PosterImage class now only makes the primary calculations when instanciated.
  The splitting is now a separate method.
* OPT: When a map data entry is invalid, only the error message is shown in console 
  rather than the full backtrace.
2015-03-26 16:03:40 +01:00
Prokopyl 15e5c5457f * NEW: Worker runnables can now have callbacks.
These are executed in the Bukkit main thread, therefore 
allowing to use the Bukkit API in a thread-safe manner.
2015-03-19 02:01:26 +01:00