Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.3 KB

README.md

File metadata and controls

54 lines (36 loc) · 2.3 KB

SignShopExport is a Bukkit plugin for 1.10.2+ and either SignShop 2.11.0 or QuickShop 0.9.22. Its sole function is to export a JSON database of shops, for public use.

Links

Usage

Simply place into your server's plugins directory. As long as you also have SignShop 2.11.0+ or QuickShop 0.9.22 (but not both!), SignShopExport will immediately begin exporting data to the configured JSON path. When it is done, it will wait until the next interval to export again.

You can set the exportPath to somewhere web accessible (e.g. /var/www) or you can just create a symbolic link to the JSON file itself (e.g. ln -s /var/mc/data.json /var/www/signshop.json).

To understand how to parse the data, see docs/FORMAT.md. The data exported will include only some of the metadata for a shop's items (e.g. books will only show page count, not contents).

Config

There's only one config file, found at plugins/SignShopExport/config.yml with these options:

  • exportPath - Path of data file to export, relative to server directory. Can be absolute.
  • exportMinPath - Path of minified data file to export, relative to server directory. The minified output is useful for reduced bandwidth usage. Can be absolute.
  • exportInterval - Seconds between each export, with a minimum of 5 seconds.

Commands

To reload SignShopExport, do /signshopexport in-game or on the console. This will:

  • Immediately and safely stop any ongoing exports
  • Reload the configuration file from disk
  • Immediately trigger an export

Using this command requires console, op or the permission signshopexport.reload.

Building, debugging and debug logging

For instructions and screenshots on how to. . .

  • Compile this plugin from scratch
  • Build a JAR of this plugin
  • Debug this plugin on a server
  • Enable debug logging levels such as FINE and FINER

. . .please follow the linked guide on this Google document.