Commit Graph

69 Commits

Author SHA1 Message Date
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
108812785e Update spigot repo to https 2021-05-09 22:29:30 +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
f12302c800 Made artifactId lower case, because apparently GitHub doesn't like it? 2021-02-13 14:55:15 +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
5c556b2f1a Make clear a Spigot server is required. 2020-10-04 00:17:31 +02:00
SydMontague
3670fab4c7 Add description and permission-message to the command 2020-10-03 23:38:31 +02:00
SydMontague
271cccb253 Version Bump 2020-09-09 14:03:00 +02:00
SydMontague
c79f438a5f Version 1.0.3 2020-09-09 13:42:05 +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
ab0a674742 Version Bump 2020-08-26 02:24:53 +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
2dc1c7bb6b Version Bump 2020-07-23 19:54:41 +02:00
SydMontague
4a2978889c Version 1.0.1
Fixed project setup mistakes
2020-07-23 19:13:33 +02:00
SydMontague
14723da294 Fix groupId 2020-07-23 19:11:03 +02:00
SydMontague
47e37768d8 Bump version to 1.1.0-SNAPSHOT, fix README 2020-07-23 19:10:12 +02:00
SydMontague
d747fba0ec Release 1.0.0 2020-07-23 18:37:37 +02:00
SydMontague
a15f79e287 Improve list UX, filter invalid maps 2020-07-23 17:45:51 +02:00
SydMontague
d9ff43a78a Mention imagemaps.* permission node 2020-07-21 14:33:07 +02:00
SydMontague
f7426aa957 Fix error in README 2020-07-21 14:29:06 +02:00
SydMontague
dfd92db550 FIx Image text being slightly cut off 2020-07-21 14:28:13 +02:00
SydMontague
657556f2a3 Contact options as list 2020-07-21 14:25:34 +02:00
SydMontague
7c5e942578 Fix Markdown 2020-07-21 14:24:43 +02:00
SydMontague
bb7fdba9b7 Updated package, added license, added readme 2020-07-21 14:20:24 +02:00
SydMontague
c1c1be04cb GitHub Actions integration 2020-07-19 00:42:15 +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
6399c4478b Release Version 0.5.0
Huge shoutout to BaronyCraft for contributing these features!
- Prevent users from escaping the /images folder
- allow reloading images from console
- cancel placement by right clicking air (requires item in hand)
- allow downloading images from the web to the /images folder
-- /imagemap <fileName> download <URL>
-- requires imagemap.download permission
- /imagemap <fileName> info command to get dimensions of image
- display space requirements before placement
- added scale parameter
-- /imagemap <fileName> scale <tilesX> <tilesY>
-- scales to fit in given constraints, but keeps aspect ratio
2019-04-06 15:17:43 +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
SydMontague
eb3a898b91
Merge pull request #10 from BaronyCraft/master
Some new features and changes
2019-04-06 13:27:57 +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
8999b139f2 Updated pom.xml to 0.5.0-SNAPSHOT 2014-04-28 12:02:59 +02:00