Commit Graph

27 Commits

Author SHA1 Message Date
NoahTheGoodra
370113b524 Add Rename Command
Signed-off-by: NoahTheGoodra <peterpan0413@live.com>
2017-10-09 09:03:11 -05: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
79004336a0
Fixed some typos in texts.
* BUG: fixed typography errors and things like this.
2016-05-21 20:55:03 +02:00
Amaury Carrade
cd3aeb8cab
Merge branch 'indev' of github.com:zDevelopers/ImageOnMap into feature-i18n
Conflicts:
	src/main/java/fr/moribus/imageonmap/commands/maptool/ListCommand.java
2016-05-21 19:12:25 +02: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
6568e6e411
Made /maptool list clickable (closes #12)
* NEW: a click on the maps names on /maptool list gives the maps.
* NEW: added a tooltip on this list containing infos about the map.
* NEW: light redesign of the list.
2016-05-21 00:48:40 +02:00
Adrien Prokopowicz
a285d782be Maps titles are now hidden when placed on an item frame.
* NEW: MapItemManager: now handles item frame events, allowing to hide
  the map's title only when needed.
* NEW: Map files are now all loaded on start, rather than on demand.
* NEW: Rewrote DeleteConfirmCommand using the new RawText API.
* NEW: Use the new ZLib.registerEvents() API.
* OPT: MapManager's and PlayerMapStore's managesMap() methods now return
  early when given a non-map ItemStack.
2016-04-11 22:39:27 +02:00
Adrien Prokopowicz
154c2fde36 * BUG: Fix delete command confirmation message parsing. 2016-04-02 23:09:12 +02:00
Adrien Prokopowicz
b5d41b25d0 * NEW: Improved rendering error messages. Fixes #22. 2016-04-02 21:45:03 +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
Amaury Carrade
58abd17205 Renamed /maptool manage to /maptool explore, and added the /maps alias.
* NEW: /maptool manage is now /maptool explore.
* NEW: added /maps as an alias of /maptool explore.
2015-09-10 16:30:29 +02:00
Adrien Prokopowicz
a5449899f1 Finally finished the 2D Explorer API !
* NEW: ExplorerGui: Implemented 2D data support.
* NEW: ExplorerGui: Implemented retreiving items using coordinates rather than data.
* NEW: ExplorerGui: Added right-click event support.
* NEW: Gui: Added support for dragging events.
* NEW: Maps given to the player now have their attributes hidden.
* BUG: PluginLogger: Fixed exception handling when logging a message with arguments.
2015-08-31 11:36:24 +02:00
Adrien Prokopowicz
0ad44db92b Keep working on the GUI API.
* NEW: The manage command now opens the MapList GUI.
* NEW: MapListGui: First actual implementation.
* NEW: MapManager/PlayerMapStore: Added the getMaps() method.
* BUG: GuiUtils: The hideAttributes() method does not crash anymore if
  the ItemFlags API is not available.
* OPT: ExplorerGui: Inventory variables are now computed only on data update.
2015-07-30 08:52:18 +02:00
Adrien Prokopowicz
6ecfc1a561 Added new Explorer GUI class (and tests).
* NEW: Added new Explorer GUI type (not yet complete).
* NEW: Added testing implementation of MaterialGui.
* NEW: Added testing implementation of MapListGui (not functional).
* NEW: Gui: Added the MAX_INVENTORY_COLUMN_SIZE constant.
* NEW: ActionGui: Added the onAction_unknown event.
* NEW: ActionGui: Added the updateAction methods.
* BUG: ActionGui can now find action handlers in subclasses.
* BUG: ActionGui: Actions in the player's inventory are not cancelled anymore.
2015-07-19 16:58:10 +02:00
Amaury Carrade
e1cd920d4c One GUI to rule them all, One GUI to find them, One GUI to bring them all and in the darkness bind them.
* NEW: removed the category selector GUI.
* NEW: the map list GUI lists all the maps.
2015-07-12 01:45:17 +02:00
Amaury Carrade
2dfc0bf794 Implemented the beginning of the GUI: command /maptool manage, paginated & per-category GUI.
* NEW: Command `/maptool manage` to open a GUI used to manage the maps.
* NEW: GUI to manage the maps, organized per-category (first GUI to select the map type; then a GUI to view them). Pages of 21 maps (3×7).
* NEW: You can get a map by left-clicking on it on the GUI.
2015-07-10 19:37:59 +02:00
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
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
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
6c95e8a95e * NEW: Implemented the list, get and delete maptool commands. 2015-03-31 19:17:06 +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
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
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
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