Commit Graph

47 Commits

Author SHA1 Message Date
Prokopyl
ce61923268 * BUG: Fix command permissions management. 2015-06-03 20:53:07 +02: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
6725c15002 Fixed migration for players who changed names before migrating.
* NEW: UUIDFetcher can now fetch uuids at a specific timestamp.
* BUG: Old map files are not loaded twice anymore.
* OPT: Reduced minimum time between requests.
2015-04-10 02:22:47 +02:00
Prokopyl
90dd9eb24d Migration preparation done.
* NEW: Added Migration worker.
* NEW: Added the maptool-migration op-only command.
* NEW: Added pre-v3 map files loading support.
* NEW: Implemented v3 migration preparation.
* NEW: Commands : added support for runtime permission checking.
* NEW: Worker threads are now named based upon their worker's name.
* BUG: Fix MapItemManager exiting if it has not been properly initialized.
2015-04-09 22:32:51 +02:00
Prokopyl
aa27636962 * NEW: The plugin now tries to load images from the old "Image" directory if the new one does not exist. 2015-04-08 14:17:10 +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
27f836977f * NEW: Added the "map item cache" and the associated /maptool getremaining (or getrest) command. 2015-04-01 03:53:52 +02:00
Prokopyl
2280e96125 * NEW: Poster map items now show position information. 2015-04-01 02:22:06 +02:00
Prokopyl
ca8cebd0a0 * BUG: Newly created maps now have their names assigned correctly. 2015-03-31 21:41:37 +02:00
Prokopyl
860fed25e5 * OPT: The map database is now thread-safe. 2015-03-31 20:48:44 +02:00
Prokopyl
b192214609 * BUG: Maps are correctly updated if there are map objects already loaded when the plugin is enabled. 2015-03-31 20:04:56 +02:00
Prokopyl
6c95e8a95e * NEW: Implemented the list, get and delete maptool commands. 2015-03-31 19:17:06 +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
5c369c65cd * NEW: Implemented the new map data storing system. 2015-03-26 06:39:48 +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
Prokopyl
7a8ec83d6a Implemented the command management classes (inspired from CommandTools).
* NEW: Added command management classes.
* NEW: Added an unfinished implementation of /maptool new.
* NEW: Added the shortcut command /tomap (alias of /maptool new).
2015-03-18 01:49:30 +01:00
Prokopyl
e4bd514a6e * OPT: Fix a few compilation warnings. 2015-03-17 00:32:42 +01:00
Prokopyl
1cb42e4965 Started refactoring. Plugin is not working yet !
* NEW: Added proper license headers.
* NEW: New image loading management.
* NEW: Added a threaded worker to run the image loading/saving.
* OPT: Moved images to the images/ subdirectory.
2015-03-16 20:40:44 +01:00
Prokopyl
bdf35e9eef * BUG: Map items show correctly their position if they are part of a multiple-map poster. 2015-02-18 15:27:07 +01:00
Prokopyl
aa7aa32592 * NEW: Updated version to 2.99. 2015-02-17 20:01:44 +01:00
Prokopyl
3e19bb0b74 * OPT: Remove the unfinished AnimatedMap implementation for now. 2015-02-17 19:28:58 +01:00
ProkopyL
e31c20191f Code cleanup, starting to reorganize packages, and various (unstable!) updates.
* NEW: Added the commands and image packages.
* NEW: ImageMap is now an abstract class rather than an interface, 
  allowing to add several useful common methods.
* NEW: The MapType enumeration is now part of the ImageMap class.
* NEW: Added some utility methods to the MapType enumeration.
* NEW: imageName, ownerName and worldName are now common map properties.
* NEW: The PosterImage class (was previously Poster) is now used to hold
  the sub-images in the PosterMap class, instead of holding an array of 
  SingleMaps.
* NEW: Completely rewrote the image splitting algorithm.
* NEW: Removed the MapData and PosterData classes. They were uselessly
  wrapped by the PosterMap and SingleMap classes.
* BUG: Fixed some method's accessibility.
* OPT: Cleaned up the map renderer a bit.
2015-02-17 18:31:55 +01:00
ProkopyL
d541aede3f Cleaning up exception and error management.
* NEW: Added the PluginLogger class to standardize console logging.
* NEW: URLs are parsed before starting any downloading task, and an error
  is shown to the user if the parsing failed.
* BUG: Exceptions are now catched at the highest possible level, so that
  appropriate error messages/logs can be generated.
* OPT: Standardized code formatting a bit.
2015-02-15 13:19:05 +01:00
ProkopyL
e19d8b5f39 Fixes for #3.
* BUG: Fix image scaling and writing.
* BUG: Using HTTPS should not prevent downloading a map.
* BUG: Exceptions during download are now correctly handled.
* BUG: Fix the "download success" message.
* OPT: Cleaned some old commented code.
2015-02-14 22:14:22 +01:00
ProkopyL
6474acecdf * NEW: Switched project to Maven. 2015-02-14 19:25:20 +01:00
Coutume
675bf898aa diverses corrections 2014-12-13 16:34:07 +01:00
Coutume
b1a7734f86 Préversion 4. Voir commit suivant (encore ) pour les détails 2014-10-21 18:23:35 +02:00
Coutume
6b9e5ef5e0 Préversion 4. Le commit suivant détaillera les changements 2014-10-21 18:20:35 +02:00
Coutume
ace2c2c948 update source 2014-03-12 19:08:51 +01:00
Coutume
12e55030fb Maps are now loaded only when they will be displayed 2014-02-13 15:16:33 +01:00
Coutume
250e080394 Ajout enregistrement du monde de la map 2014-02-07 19:50:38 +01:00
Coutume
2828445706 divers 2014-01-29 18:05:06 +01:00
Coutume
939b01f995 Ajout de la commande tout-en-un maptool pour gérer les maps 2014-01-29 15:57:47 +01:00
Coutume
17d6813f3e Ajout de la commande getmap; Ajout fichier config pour les maps 2014-01-12 23:45:43 +01:00
Coutume
f967564107 Diverses modifications 2014-01-12 15:59:54 +01:00
Coutume
f3510b1d3f Corrections de bugs liés au chargement des images 2014-01-06 10:31:51 +01:00
Coutume
ea018da66c Ajout de MetricsLite afin de collecter des données sur l'utilisation du plugin 2013-12-05 13:53:29 +01:00
Coutume
111d4ebc0b Amelioration de l'algo de découpe des images 2013-12-05 12:56:31 +01:00
Coutume
09608e5bf5 V1.9 = Beta de la 2.0. Changelog à venir... 2013-12-04 07:28:51 +01:00
Coutume
525cc12d79 Traduction des messages de la commande rmmap 2013-10-08 14:14:02 +02:00
Coutume
770cff2fa8 Ajout de paramètres pour limiter le nombre de map par serveur et par joueur 2013-10-03 02:25:21 +02:00
Coutume
3655cffd38 Ajout d'une option à la commande /tomap pour écrire ou pas le pseudo du joueur sur la carte 2013-10-02 17:23:30 +02:00
Coutume
d5b5868a5d Ajout d'une vérification à la création du dossier Image 2013-10-02 01:49:39 +02:00
Coutume
aa9c7df875 Ajout de la commande /rmmap 2013-10-01 17:38:33 +02:00
Coutume
b9393d7ec5 Ajout des permissions pour les commandes 2013-10-01 17:31:26 +02:00
Coutume
f12b48a6e5 First update# On branch master 2013-09-25 22:08:17 +02:00