RealShopping
Real Shopping v0.50
ALPHA VERSION IS AVAILABLE
An early version of 0.51 update is available for download upon approval. Please test it and help us release it bugfree! Read the disclaimer in the changelog page before downloading!
RealShopping is a shop plugin which aims to be as realistic as possible. It can use Vault for economy integration, which is highly recommended. Pre 0.30 source code is included in the jar, later on GitHub
How it works
You enter a store by right-clicking the "door", which is either a glass block or a glass pane. The plugin teleports you inside and remembers everything in your inventory. You can then take the items which you want to purchase from chests in the store. Then you walk up to the cash register (an obsidian block with a slab on top), right click it, and the plugin sees which items you have taken and charges you for them. At last you can exit the store by standing at the exit and right-clicking the door.
These are the basics, and how everything started. Now, RealShopping has lots of additional features. Take a look at the different pages here to see if you find something which suits you!
If you don't feel like reading a lot of instructions, you can get a hold of the basics by watching the video tutorial further down the page! :)
(click images for a higher resolution)
Features
- Ability to create an infinite number of stores.
- Aliases for item IDs and data values which you can use in commands.
- Separate prices for each store.
- Self-refilling chests.
- Minecarts with chests acting like shopping carts
- Delivery of the items in your shopping cart to a chest at your home.
- Selling to stores, if the owner approves it.
- Language-packs.
- Both admin and player-owned stores.
- Kick or banish players from your stores.
- A punishment for players trying to steal items.
- A mostly command free experience for users.
- An automatic updater!
Installation
Just put the RealShopping.jar in your plugins folder and start and stop the server. A directory named RealShopping with a couple of files is created. You can edit the realshopping.properties config file if you like, but the default settings will suit most people.
I highly recommend Vault together with an economy plugin for the best economy management.
Documentation
Video tutorial
(This one is kinda old, feel free to make your own version and PM it to me)
Thanks to IngrownPenguin for making this tutorial!
Changelog
v0.50
Besides a rewrite of a lot of stuff, RealShopping version 0.50 comes with a few new, but important features. The smaller improvements which I originally had planned for 0.50 are postponed to 0.51, but here's what you get in this version:
- Added search option to /rsprices. Instead of browsing through several pages of prices you can now search for the item you need.
- Added aliases - Six hundred of them! That's more than enough for every item ID and data value combination. Instead of typing item IDs when executing commands you can write the name of the item, and the plugin will recongnize it. For a complete list and more detailed instructions, see the plugin page.
- Added interactive prompts for /rsset, /rssetstores and /rssetchests. This simplifies creating stores (especially ones with many entrances) and managing self-refilling chests. In case something goes wrong, all prompts can be aborted with quit.
- Added free manage mode to the /rssetchests prompt. Open a chest, put items in, and close it. The chest contents will be permanently updated.
- Added the multiplication sign to additems and delitems in /rssetchests. If you want to add the same item stack several times in a row to a chest, you can type it once and put a multiplication sign followed by a number behind. Examples are on the plugin page.
v0.44
I'm releasing this version just to add one function which I think is needed. Now stores will buy and sell partly-broken tools with a discount equal to the durability percentage.
Note that I am in the middle of rewriting parts of the code. Some of the commands now have slightly improved help options, but otherwise this makes it more likely for bugs to turn up. If you encounter one, please report it in the Tickets section and I will get it fixed. If you're wondering something, feel free to ask in the comments :)
Future features
These are some ideas that are on my mind for the future of RealShopping. If you have any, please post in the comments. I appreciate every suggestion :)
- The this alias, which you can use for the currently held item.
- The /rsme command, for managing store "news" subscriptions amongst others.
- Further improvement of the automatic store management.
- Extended and more customizable notifications.
- More creative ways to punish thieves and an improvement of the current.
- Even more smaller improvements!





-
View User Profile
-
Send Message
Posted Oct 19, 2012@Braveras
I've just started on the next big update and it can take anywhere from one week to three weeks (?), depending on school and stuff. I don't want to make smaller updates in-between because that would just cause more unexpected bugs. HOWEVER I can release a bug fix on GitHub and you'll just download it from there. It's gonna have some new code that isn't yet used for anything but hopefully it won't do any harm.
I propably can manage to do that later this evening. I'll PM you when I've uploaded it.
-
View User Profile
-
Send Message
Posted Oct 19, 2012When are you going to update realshopping? I dont want to rename my world to "world" :S
-
View User Profile
-
Send Message
Posted Oct 18, 2012@kuben0
Awesome! This is very awesome man. The setup is smooth and it does add a very nice feel to the game. Thanks and keep up the great work!
-
View User Profile
-
Send Message
Posted Oct 18, 2012@techrosis
Yes that's exactly what it would. I haven't added different prices for different data values so if you want to sell potions you have to set the price for a water bottle. spongefire10 had the same question but with golden apple (322) and enchanted gold apple (322:1). So for now all potions in the same store will unfortunately cost the same, but I promise to fix it in the next big update :)
-
View User Profile
-
Send Message
Posted Oct 17, 2012LOVE THIS PLUGIN!!!! I do however have one question and I apologize ahead of time if it's already been asked. How would you sell potions. For example a Healing Potion that has id: 373:8197. Would that not set a water bottle at $8187? Thanks again.
-
View User Profile
-
Send Message
Posted Oct 16, 2012@adamwbb
I found the problem, I don't know when I can upload a fix, but I know how you can get everything to work for now.
RealShopping needs to recognize a world named "world" for it to load. You don't need to use the world, it just needs to be there and my mod has to recognize it. I guess the optimal solution would be to set the main world to "world" in the Bukkit config and then have a plugin load the other words. Try and see what works.
Really sorry for your inconvenience.
-
View User Profile
-
Send Message
Posted Oct 16, 2012@kuben0
PLEASE FIX!
I CANT RENAME MY WORLDS BECAUSE IF I DO I WILL BREAK A MAJORITY OF MY PLUGINS!
-
View User Profile
-
Send Message
Posted Oct 14, 2012@spongefire10
Oh, I didn't know they added an enchanted golden apple. Unfortunately you can't set different prices for different data values. I didn't think that feature would be needed because most such variations have similar value, but I'll implement that in the next big update (which is gonna take a while).
For now you'll just have to have separate stores or sell gold blocks and regular apples so the players can craft them. Sorry
-
View User Profile
-
Send Message
Posted Oct 14, 2012@kuben0
so i wanna sell a gold apple for i say 20 coins, but if i wanna sell a enchanted golden apple it will cost the same because of the id, i wanna change that but how
-
View User Profile
-
Send Message
Posted Oct 13, 2012@Braveras
It's not the same error actually, but it's another stupid bug.
My guess is you don't have a world named "world". Turns out the mod can't render the properties file if that is the case. I'm too tired now to do some serious testing so you'll have to wait till tomorrow for a solution. Just rename your world for now if you want to try RealShopping :)
-
View User Profile
-
Send Message
Posted Oct 13, 2012The same error as Tobias. What happen? 20:48:26 [INFO] [RealShopping] Enabling RealShopping v0.33 20:48:26 [SEVERE] Error occurred while enabling RealShopping v0.33 (Is it up to date?) java.lang.NullPointerException at com.github.kuben.realshopping.Config.initialize(Config.java:212) at com.github.kuben.realshopping.RealShopping.onEnable(RealShopping.java:191) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:266) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:248) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:276) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:226) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Oct 9, 20122012-10-09 23:32:03 [INFO] [RealShopping] Enabling RealShopping v0.32 2012-10-09 23:32:03 [SEVERE] Error occurred while enabling RealShopping v0.32 (Is it up to date?) java.lang.NumberFormatException: For input string: "world;0" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.github.kuben.realshopping.Config.initialize(Config.java:122) at com.github.kuben.realshopping.RealShopping.onEnable(RealShopping.java:191) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:266) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:248) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:276) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:226) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:377) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Sep 30, 2012I've uploaded a final alpha version of v0.32 on GitHub, including the jar. Only thing left to do before I submit the final version to Bukkit is to add h31ix's automatic updater. You can expect it here very soon :)
-
View User Profile
-
Send Message
Posted Sep 24, 2012@spongefire10
I'm not sure I understand what you mean, but if you want to sell an item with metadata you can only set the price for every item with the same ID.
-
View User Profile
-
Send Message
Posted Sep 23, 2012it is impossible to seel things like 322:1 because then it sells the item with the id 322 and that wil then cost 1 dollar how can i change that
-
View User Profile
-
Send Message
Posted Sep 18, 2012@kuben0
Awesome, thanks!
-
View User Profile
-
Send Message
Posted Sep 17, 2012@OctopusPlaya
Oh, I didn't think of that. I just tried canceling the opening of a chest and it seems to work fine, so I'll be able to implement protected chests or something in the next version :)
@adamwbb
What version are you using? Can OPs enter the store?
-
View User Profile
-
Send Message
Posted Sep 17, 2012PERMISSION DENIED i set the permissions in group manager but it keeps denying everyone entry i checked it over and over but it wont work
-
View User Profile
-
Send Message
Posted Sep 16, 2012@kuben0
Thanks for the reply. Sorry but also, players can break blocks and quickly right click on the chest inside the store and take what they want before the block goes back in place. Would it be possible to make the items from chests made with the /RssetChests command to only be opened when in a store?
-
View User Profile
-
Send Message
Posted Sep 5, 2012@OctopusPlaya
I'm working on it, and I even added something in 0.31 that should prevent it, but apparently didn't. The problem is that Bukkit doesn't have an "on eat" event and I don't really know yet how to do it.
I think I'll figure something out eventually though :)