Commit Graph

49 Commits

Author SHA1 Message Date
SydMontague b70a163c3c Update 1.0.11
- potentially fix color cache error
- added /imagemap cleanup command
- added /imagemap debuginfo command
2023-05-01 11:05:42 +02:00
SydMontague 67ed74b006 Fix error when interacting with entities in <1.17 versions 2021-08-13 15:51:22 +02:00
SydMontague b1216b016f Fix invisible/fixed toggle not working on glowing item frames 2021-08-06 12:49:43 +02:00
SydMontague b3f9b6da6b Version 1.0.8 2021-07-12 15:00:23 +02:00
DerEnderKeks a3c5393733 Auto format + import optimization 2021-07-11 15:08:41 +02:00
DerEnderKeks 551b407803 Implemented glowing item frames 2021-07-11 15:06:47 +02:00
SydMontague 5c0a854ba3 Reduce performance impact of rendering, fixed scaling bug 2021-07-08 16:46:28 +02:00
DerEnderKeks 84a014605a Reinstated null check and did some cleanup 2021-05-18 14:39:39 +02:00
DerEnderKeks af5804c92b Typo + indentation 2021-05-18 11:58:38 +02:00
DerEnderKeks 173c2391a5 Implemented `delete` sub command
Deletes an image from file system and image cache and removes associated renderers
2021-05-18 11:49:21 +02:00
DerEnderKeks 61160f97f0 Properly handle already existing images when downloading one 2021-05-18 11:43:18 +02:00
DerEnderKeks afea802cd2 Set proper User-Agent when downloading images
This way CDNs don't block the request
2021-05-18 11:41:44 +02:00
SydMontague 66d2cc474a Improve handling of filenames containing spaces 2021-05-09 22:28:58 +02:00
SydMontague fa6588be58 Improve verification of downloaded files.
Any file could be downloaded as long as the webserver claimed they were
images. This can allow a compromised or malicious server to serve any
kind of data to the requesting server, including executable code.

The risk for this being exploited is very minimal, the downloaded files
can't be executed or used for anything malicious without either another
exploit or additional actions by a malicious, compromised or
non-suspecting user.

Nethertheless, this update adds an additional verification layer making
sure the downloaded file is a valid image file. It additionally stores
the image as PNG on disk, regardless of the filetype of the download,
stripping the file of potential "baggage" as you might find in polyglot
files.

As a general rule of thumb you should
* always use a secure connection to download files (https)
* only give trusted and properly secured users access to the download
functionality
* only download from trusted sites
* preferably upload the images manually
2021-02-19 21:02:23 +01:00
SydMontague 8a509043a5 Fix 1.13 incompatibility 2021-02-13 17:06:36 +01:00
SydMontague 74db534166 That was supposed to be here... 2021-02-13 14:43:16 +01:00
SydMontague 9831c82e71 Prevent inputs <= 0 for getSubImage calls in the renderer 2021-02-13 14:41:02 +01:00
SydMontague 3670fab4c7 Add description and permission-message to the command 2020-10-03 23:38:31 +02:00
SydMontague 26862c3b5a Mention toggle item in README, potentially fix tracking arrow showing 2020-09-04 22:47:08 +02:00
SydMontague 07991df33b Fix README and command help 2020-09-04 22:17:19 +02:00
SydMontague 6aba1d1c5a Version 1.0.2
* made item used to toggle fixed/visible configurable
* fix interaction with toggle item when permission is lacking
* fix exception thrown when maps.yml doesn't exist
2020-08-26 02:23:28 +02:00
SydMontague a15f79e287 Improve list UX, filter invalid maps 2020-07-23 17:45:51 +02:00
SydMontague bb7fdba9b7 Updated package, added license, added readme 2020-07-21 14:20:24 +02:00
SydMontague 075bf2a098 Complete Rework
- supports 1.13 and up
- support bottom/top side placement for 1.14+
- support for fixed/invisible property in 1.16+
- complete UX rework
	- better command structure
	- more colors
	- better documentation
- removed fastsend, since it's obsolete in modern version
- GitHub Actions Continuous Integration
2020-07-18 23:55:43 +02:00
SydMontague 0fc7586df3 Added ImagePlaceEvent 2020-02-15 17:03:56 +01:00
SydMontague 1d44dea49e Changed event priority from MONITOR to HIGHEST
MONITOR handlers are not supposed to change the event
2019-09-23 02:43:15 +02:00
SydMontague 2ce1e361f1 Stop using player names as key in Maps...
Adjusted BaronyCraft's code for a release
- check for RIGHT_CLICK_AIR event to cancel selection (requires item in
hand)
- changed some messages a bit
- formatted the code to be more in line with my style
2019-04-06 15:12:30 +02:00
Guntram Blohm 265c9d05e1 Alllow downloading images by URL
Check file name to make sure people don't overwrite C:\somefile or /etc/passwd
Right clicking air cancels placement
2019-04-06 11:00:52 +02:00
Guntram Blohm 20517bfa16 Allow scaling images 2019-04-05 16:03:26 +02:00
Guntram Blohm 3830dc1924 cancel event if it places a map 2019-04-05 14:31:26 +02:00
Guntram Blohm 95c08f5e52 only warn once for each file that isn't found 2019-04-05 14:06:35 +02:00
SydMontague abd3c93574 Changed MapIDs from short to integer to comply with Bukkit changes
Improved Tab-Complete for /imagemap command
Removed unused MCStat stuff from pom.xml
2019-02-07 14:08:16 +01:00
SydMontague ea680663eb Updated to Version 0.4.5
Fixed some 1.13 incompatibilities
2018-07-30 02:21:09 +02:00
SydMontague d5b15b78bf Update to Version 0.4.4
Fixed new maps not working in 1.13, should break for anything older!
Removed Metrics
2018-07-24 20:13:42 +02:00
SydMontague c0feeb524c The plugin now checks if there is enough space for the Image
It also now throws an error message if there are any hanging entities
which block the to-be-spawned ItemFrame. Unfortunately it's a dirty
hack...
2016-03-04 16:26:23 +01:00
SydMontague bf0179dbdf Updated for 1.9
This update drops support for Versions <1.8
2016-03-02 23:03:41 +01:00
SydMontague bce3907086 Added compatibility for Spigot's 1.8 CraftBukkit builds. 2015-01-08 20:55:32 +01:00
SydMontague 6b32d60a73 fixed typo 2014-08-02 01:14:51 +02:00
SydMontague 9c862aeed5 added /imagemap <file> reload functionality 2014-04-28 11:50:35 +02:00
SydMontague d823720b1c don't override fastsent when it is already true 2014-04-22 19:03:55 +02:00
SydMontague 05d24ccb7e Updated to Version 0.3.1
also, removed a old debug text...
2014-03-15 15:45:47 +01:00
SydMontague 104d23d1dd Save maps.yml after maps were placed to avoid progress losing after a
server crash.
2014-03-15 13:57:25 +01:00
SydMontague 0037cc6735 Get Metrics from Maven 2014-02-11 21:30:54 +01:00
SydMontague 8eeae29893 Updated to 0.3
Added fastSend support, allowing you to define maps that will be sent
as a whole to the player.
2014-01-23 12:55:40 +01:00
SydMontague f4d4b2531b Update to 0.2.1
Fixed bug that removed images caused maps to not load.
2014-01-09 23:47:17 +01:00
SydMontague cb7761491c Improved map reuse behaviour of the plugin.
If you place the same image more than once, it will share the map items,
reducing the overall usage of maps as well as bandwidth usage.
2014-01-04 14:07:14 +01:00
SydMontague aa58da0f85 Release as 0.1
Updated plugin.yml
Fixed folder generation on startup
2013-12-30 15:50:51 +01:00
SydMontague 6adacd9a41 added Metrics 2013-12-30 14:52:48 +01:00
SydMontague c94ce19270 initial commit 2013-12-30 14:20:34 +01:00