This PR adds two new features to Shops And Trades mod:
Possibility to set a limit for the shop items price
Possibility to allow only a certain list of containers that can be used as shops
Extra: Allow Starting Amount of Money to be set to 0 (zero)
Possibility to set a limit for the shop items price
When the ShopItemPriceLimit sandbox option is set to a value greater than 0, the price for all items that players wish to add to their shops will be limited to that amount.
The reason behind this feature is to prevent players from using their shops as exploits to have a safe place to store their items (e.g. adding all their valuables into their shop at an unreasonable price so that it is impossible for other players get them). Additionally, this can be an interesting feature for servers where it is important to keep things in balance with the server's trading and currency system.
Possibility to allow only a certain list of containers that can be used as shops
The ShopContainers sandbox option can be used to allow only certain types of containers to be used as a shop. If set, it should contain a comma-separated list of container names (e.g. "Crate,Military Crate") that can be used as shops. If left empty, all containers can be used as shops.
The reason for this feature is for servers where it is important to limit the type of containers that can be used as shops, for example to only allow small containers with a limited capacity, OR to be able to use custom sprites (created via custom recipes) more easy to recognize as shops on the world map.
Extra: Allow Starting Amount of Money to be set to 0 (zero)
This is a small change, the sandbox option StartingWallet can now assume a minimum value of 0.00 so to allow servers to let new players to start with no money in their wallet.
This PR adds two new features to Shops And Trades mod:
Possibility to set a limit for the shop items price
When the
ShopItemPriceLimit
sandbox option is set to a value greater than 0, the price for all items that players wish to add to their shops will be limited to that amount.The reason behind this feature is to prevent players from using their shops as exploits to have a safe place to store their items (e.g. adding all their valuables into their shop at an unreasonable price so that it is impossible for other players get them). Additionally, this can be an interesting feature for servers where it is important to keep things in balance with the server's trading and currency system.
Possibility to allow only a certain list of containers that can be used as shops
The
ShopContainers
sandbox option can be used to allow only certain types of containers to be used as a shop. If set, it should contain a comma-separated list of container names (e.g. "Crate,Military Crate") that can be used as shops. If left empty, all containers can be used as shops.The reason for this feature is for servers where it is important to limit the type of containers that can be used as shops, for example to only allow small containers with a limited capacity, OR to be able to use custom sprites (created via custom recipes) more easy to recognize as shops on the world map.
Extra: Allow Starting Amount of Money to be set to 0 (zero)
This is a small change, the sandbox option
StartingWallet
can now assume a minimum value of0.00
so to allow servers to let new players to start with no money in their wallet.