https://github.com/mineinabyss/shoppy
An upcoming shopkeeping plugin for the MineInAbyss server
https://github.com/mineinabyss/shoppy
minecraft spigot spigot-plugin
Last synced: 10 months ago
JSON representation
An upcoming shopkeeping plugin for the MineInAbyss server
- Host: GitHub
- URL: https://github.com/mineinabyss/shoppy
- Owner: MineInAbyss
- Created: 2019-10-01T02:53:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T22:04:12.000Z (over 6 years ago)
- Last Synced: 2025-03-31T03:29:47.588Z (about 1 year ago)
- Topics: minecraft, spigot, spigot-plugin
- Language: Java
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shoppy
Shoppy is a Shopkeeper plugin originally intended for the MineInAbyss server.
It is currently in development and won't have any proper builds for a while.
It is designed to hold many types of shops, which work with currency, items, and much more.
# Outline
The following section is meant to serve as a guide in the design of the plugin itself.
### Core idea
A shop simply stores a list of trades. It is up to the shop's implementation to display these.
A trade holds a list of `Want`s and `Reward`s.
The shop displays wants and rewards and gives a way to attempt a transaction.
If the wants' conditions are met, it will play out a list of rewards.
### Serialization and storing of data
Trades are serializable using Bukkit's config methods, but it is up to shops to choose how to save these. The most basic right-click-to-interact shopkeeper could store this under its UUID, white a shop that's usable anywhere could just store trades under a specific file name.
Shops can implement trades however they want. A shop can make a gui or work through interactions with the physical world, it just needs to store a trade/trades and have a way of identifying which trade is associated with it.
### Registering additional wants and rewards
The plugin will in the future allow other plugins, such as MineInAbyss to register their own wants (e.x. player whistle level), and rewards (e.x. levelling up)