Go to file
blablubbabc dffbe6bcd9 Added: It is possible to use barrels and shulker boxes as containers for player shops now.
Also added a message (msg-unsupported-container) when a player tries to select a type of container which is not supported by shopkeepers (i.e. hopper, dropper, dispenser, brewing stand, ender chest, or a type of furnace).

Other related changes:
* API: Deprecated PlayerShopkeeper#getChestX/Y/Z, #get/setChest, #getCurrencyInChest, #openChestWindow and PlayerShopCreationData#getShopChest and added corresponding replacements methods with more general names.
* Various internal renaming related to shop containers.
* Various internal formatting of code comments.

Config changes:
* Changed a few comments inside the default config related to the shop container changes.
* Bumped config version to '3'. A few settings were renamed which get automatically migrated:
  * `require-chest-recently-placed` (now `require-container-recently-placed`)
  * `max-chest-distance` (now `max-container-distance`)
  * `protect-chests` (now `protect-containers`)
  * `delete-shopkeeper-on-break-chest` (now `delete-shopkeeper-on-break-container`)
  * `enable-chest-option-on-player-shop` (now `enable-container-option-on-player-shop`)
  * `chest-item` (now `container-item`)

Added messages:
* msg-unsupported-container

Changed messages:
* Some message settings were renamed. If you don't use a custom / separate language file, they get automatically migrated as part of the config migration to version 3. However, most of these messages also had changes to their default contents which need to be applied manually.
  * msg-button-chest (now msg-button-container)
  * msg-button-chest-lore (now msg-button-container-lore)
  * msg-selected-chest (now msg-container-selected)
  * msg-must-select-chest (now msg-must-select-container)
  * msg-no-chest-selected (now msg-invalid-container)
  * msg-chest-too-far (now msg-container-too-far-away)
  * msg-chest-not-placed (now msg-container-not-placed)
  * msg-chest-already-in-use (now msg-container-already-in-use)
  * msg-no-chest-access (now msg-no-container-access)
  * msg-unused-chest (now msg-unused-container)
  * msg-cant-trade-with-shop-missing-chest (now msg-cant-trade-with-shop-missing-container)
* msg-creation-item-selected
* msg-shop-setup-desc-selling
* msg-shop-setup-desc-buying
* msg-shop-setup-desc-trading
* msg-shop-setup-desc-book
* msg-trade-setup-desc-selling
* msg-trade-setup-desc-buying
* msg-trade-setup-desc-book
2020-07-30 01:50:22 +02:00
.github Updated the issue template. 2018-09-12 19:55:27 +02:00
modules The next version will be 2.11.0. 2020-07-22 01:42:06 +02:00
src Added: It is possible to use barrels and shulker boxes as containers for player shops now. 2020-07-30 01:50:22 +02:00
.classpath Further attempt to resolve some Eclipse issue. 2019-08-20 04:26:04 +02:00
.gitignore Changed how items are getting defined in the config. 2019-08-18 04:51:49 +02:00
.project Move base dependencies up, so the project will build in eclipse. 2013-12-04 12:48:11 +01:00
.travis.yml Update for MC 1.16.1 2020-06-26 13:01:42 +02:00
CHANGELOG.md Added: It is possible to use barrels and shulker boxes as containers for player shops now. 2020-07-30 01:50:22 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2017-10-23 16:36:52 +02:00
LICENSE Initial commit 2013-12-02 09:01:27 -08:00
README.md Added: It is possible to use barrels and shulker boxes as containers for player shops now. 2020-07-30 01:50:22 +02:00
TODO.txt The TODO file is slightly outdated. 2020-07-22 01:39:27 +02:00
VERSIONING.md Added VERSIONING.md 2018-05-21 23:35:39 +02:00
installSpigot.sh Update Spigot build script to latest BuildTools changes. 2019-12-27 06:26:44 +01:00
pom.xml Update for MC 1.16.1 2020-06-26 13:01:42 +02:00

README.md

Shopkeepers logo

Shopkeepers Build Status

Shopkeepers is a Bukkit plugin which allows you to set up custom villager shopkeepers that sell exactly what you want them to sell and for what price. You can set up admin shops, which have infinite supply, and you can also set up player shops, which pull supply from a container.

BukkitDev Page: https://dev.bukkit.org/projects/shopkeepers
Wiki: https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki
Translations : https://github.com/Shopkeepers/Translations/
Issue Tracker: https://github.com/Shopkeepers/Shopkeepers/issues
Discord Server: https://discord.gg/d9NKd5z
Source code: https://github.com/Shopkeepers/Shopkeepers/

Maven repository for releases: https://nexus.lichtspiele.org/repository/releases/
Maven repository for dev builds (snapshots): https://nexus.lichtspiele.org/repository/snapshots/

Pull Requests & Contributing

See Contributing

Build with Maven

This is the recommended and easy way to compile the plugin yourself and/or help to contribute to it. Just check out the project to your machine and import it in Eclipse with Import > Maven > Existing Maven Project. Then just right click the imported project and select Run As > Maven install.

Build without Maven

If you really want to do it the old school way, you're free to import the project in Eclipse with Import > General > Existing Project into Workspace. You'll find that the project will instantly show some errors because it's missing its dependencies. You also need to make sure that you'll include the provided modules (NMSHandlers).

Here's how you do that:

  • After importing the project right click on it and select Properties
  • Under Java Build Path > Source click on Add Folder... and add all provided modules:
    • modules/v1_6_R3/src/main/java
    • modules/v1_7_R1/src/main/java
    • ...
  • Under Java Build Path > Library click on Add External JARs... and add the needed CraftBukkit.jar files for the modules above. Information on how to get them: https://www.spigotmc.org/wiki/spigot/
  • After that you can create the plugin for example by right-clicking the project and selecting Export > Java > JAR file or another recommended way.