ServerShop

ServerShop - Selling to the Server without complicated commands!

****This plugin requires Vault.*********

Overview

I wrote this because I was looking for a mod that would allow players to sell items to the server without the hassle of learning slash commands or looking through a whole room to find the stall that is buying that specific item. What I came up with is a single sign, that when left clicked, will sell all items matching the one in your hand immediately. There is a second sign that, when clicked, reports how much the item is worth.

Installation and Configuration:

The Installation has changed, but trust me... its for the better. Drop the ServerShop.jar and ServerShop folder inside your plugins directory. It is NOT necessary to replace the database folder when updating. The folder only needs to be added the first time. Otherwise, you may lose all of your pricing data! You may edit the database file inside the folder with any SQLite editor OR you may use the in game commands to change prices. To change a price, make sure you have permission, then type the following /servershop price [item number] [value]. Example: I want to change the price of cobblestone to be $1 each. I would type: /servershop price 4 1 . Alternatively, if you are holding the item in your hand, you may type /servershop price this 1 . Setting the price of any item to zero will inform players that the item can not be sold to the server.

To use the signs, a player must hold the item that they desire to sell in their hand and LEFT CLICK the Sell sign. This will total all matching items in the players inventory, sell them, and report the sales to the player. Left clicking on the PriceCheck sign will report the item value, the total number the player has, and the total value.
Additionally, permissions may be granted to allow players to check the price from anywhere, rather than using the sign. If I wanted to know the price of cobblestone, i could simply hold cobblestone in my hand and type /servershop price this or i could type /servershop price 4 while holding anything else. Admins can now check to see how many of an item has been sold to see if the price needs to be adjusted. Any player with servershop.pricechange permissions can type /servershop totalsold this OR /servershop totalsold [itemnumber] to find out how many have been sold. servershop totalsold reset can be used at anytime to reset all of those totals to 0.

Sign syntax:

[ServerShop]
PriceCheck
This sign will report prices


[ServerShop]
Sell

This sign sells your items to the server.

Permissions

ServerShop runs on 4 very simple permissions.
  • servershop.create (allows player to create the servershop sign)
  • servershop.use (allows player to sell items to the server)
  • servershop.pricechange (allows user to use the slash command to change prices)
  • servershop.pricecheckanywhere (allows user to pricecheck anywhere using /servershop price this OR /servershop price [itemnumber])

TO DO

  • Move the prices.txt to the ServerShop folder rather than the root of the plugins folder
  • Add permissions for sign use
  • Add permissions for sign creation
  • add SQLite support
  • add slash command for admins to change prices ingame
  • add slash command for price-checking from anywhere
  • add a counter for each item sold for admin use
  • add option for parabolic floating values based on popularity of item sale to prevent players from exploiting a single resource

SOURCE CODE

CHANGE LOG



**Special thanks to TheInfestation, He is a great friend and an amazing programmer.

Download

File Name Status Version Downloads Date
ServerShop v0.05 B CB 1.4.7-R1.0 4,236 19/02/2013
ServerShop v0.04 B 1.4.7 927 25/01/2013
ServerShop v0.03 B CB 1.4.6-R0.2 233 30/12/2012
ServerShop v0.02 B CB 1.4.5-R0.2 1,582 16/12/2012
ServerShop 1.20.2 Updating 1.20.2 Updating Updating
ServerShop 1.20.1 Updating 1.20.1 Updating Updating
ServerShop 1.20 Updating 1.20 Updating Updating
ServerShop 1.19.2 Updating 1.19.2 Updating Updating
ServerShop 1.19.1 Updating 1.19.1 Updating Updating
ServerShop 1.19 Updating 1.19 Updating Updating
ServerShop 1.18 Updating 1.18 Updating Updating
ServerShop 1.17.1 Updating 1.17.1 Updating Updating
ServerShop Forge Updating Forge Updating Updating
ServerShop Fabric Updating Fabric Updating Updating
ServerShop
ServerShop

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart