Skip to content

Bukkit plugin to log ChestShop transactions in a MySQL database as well to provide a little search interface for shops ingame.

License

Notifications You must be signed in to change notification settings

yeahwhat-mc/ChestShopLogger

Repository files navigation

ChestShopLogger

Current tag Repository issues

With ChestShopLogger you can log all your ChestShops into a MySQL database. The transaction data, if someone buys oder sells something in a shop, is also logged into the database. You can use this data for your own plugins or for a web interface, for example. Features Log each ChestShop into the database Log transactions into the database Delete logged ChestShops (and the related transactions), after they were removed from.

Credits to @ColorizedMind for his work on the plugin and the permission to continue maintaining it.

Features

  • Log each ChestShop into the database
  • Log transactions into the database
  • Delete logged ChestShops (and the related transactions), after they were removed from the map

Installation

  1. Make sure, that the ChestShop plugin is running on your server
  2. Upload the plugin files into your plugins directory
  3. Restart your server / load the plugin
  4. Enter your MySQL access data into the config.yml
  5. Restart your server / reload the plugin
  6. Recreate every ChestShop to initialize them

Permissions

Permission Purpose Default
chestshoplogger.tp Allows a player to teleport to a specific shop none
chestshoplogger.coords Allows a player to view the shop coords none
chestshoplogger.find Allows a player to search for shops none

Configuration

general:
  metrics: true
database:
  host: localhost
  port: 3306
  user: new_chestshop
  password: y5y13fxsWCcNzV
  database: new_chestshop
  tableVersion: 2

Development

  1. Clone this repository: git clone https://github.com/yeahwhat-mc/ChestShopLogger
  2. Download the latest ChestShop .jar via Bukkit and save it as ChestShop.jar in this project folder: http://dev.bukkit.org/bukkit-plugins/chestshop/files/
  3. Run the install_dependency_to_repo.sh script:
$ ./install_dependency_to_repo.sh
[Dependency installer]
What is your dependency\'s file name? ChestShop.jar
What is your dependency\'s group ID? com.acrobot.chestshop
What is your dependency\'s artifact ID? chestshop
What is your dependency\'s version? 3.8.9
  1. Run maven to compile the Java executable:
    mvn clean install

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request

Requirements / Dependencies

  • JDK 1.6
  • Maven
  • Bukkit/Spigot

Version

0.1.8

License

GPL 3.0

About

Bukkit plugin to log ChestShop transactions in a MySQL database as well to provide a little search interface for shops ingame.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages