How to use signs
Signs
Usage:
- Left-click on a sign to buy, right click to sell.
- If you create a sign, but something is wrong, e.g. you typed dirta as material, you will get a message and the sign will be dropped.
- If you set rewrite-signs in the config true, the material will be rewritten with the identifier.
- In every case, the price will be formatted (100: 100.00 Dollar)
Global shop signs
Row | Input |
---|---|
1 | [DynamicShop] or identifier |
3 | Material (Name, id, or identifier) |
3 | Amount |
4 | The actual price will be set by the plugin after every transaction |
Example:
[DynamicShop]
DIRT
3
This line is empty
Player shop signs (PSigns)
Row | Input |
---|---|
1 | [DynamicPShop] or identifier |
2 | Material (Name, id, or identifier) |
3 | Buy/Sell:Amount |
4 | Your price |
Buy/Sell is from customers side, so if you write buy on the sign, you sell, the customers buy.
To use a constant price, write a '!' or your identifier in front of the price
Example:
[DynamicPShop]
DIRT
sell:3
!100
If you sell, the items will be removed on the creation. If you buy, you will get the items when somebody hits the sign.
If you are offline, the items will be saved and granted you on the next server join.
It's also no problem if your sign gets broken, you will get all items back immediately!
On every sign hit you buy/sell one item. The amount on the sign will decrease by one on every transaction; if it reaches 0, the sign will be inactive or dropped (Defined in config).
@Hammy12Edgar
Look at files section. But I'm happy to hear you want to use it :D
I have found a load of glitches on my server...
Some items randomly come with another item for free, or an item come duplicated when you buy from a sign. Sometimes the item doesn't dissapear from the inventory when you sell.
General bugs like this, they don't replicate for some reason. Sometimes it does, sometimes it doesn't.
Notes:
How can I only allow certain items to be sold? Is there an easier way than to go and tediously edit the config file? I just don't want people on my server buying things like bedrock and water and lava. None of the permissions seem to be working for me. I'd like to only have items available through signs, but since that permission isn't working I can't do that.
[DynamicPShop] 1 sell:1 !10
Leftclick - Couldn't find shopowner, the sign data is corrupted Rightclick - Couldn't find shopowner.
It doesn't take an item :( Any thing else i need to do?
Any fix for 1.2.5 upcoming? Just wanted to try your plugin for my server and selling to the shop works fine. Buying brings up this error though..
10:28:21 [SEVERE] Could not pass event PlayerInteractEvent to DynamicShop org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven t(CraftEventFactory.java:176) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9 4) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java :129) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java :169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7 8) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.zylinder.dynamicshop.PlayerHandler.checkInventory(PlayerHandler.ja va:137) at me.zylinder.dynamicshop.TransactionHandler.buyGlobal(TransactionHandl er.java:85) at me.zylinder.dynamicshop.SignHandler.leftClickGlobal(SignHandler.java: 186) at me.zylinder.dynamicshop.DynamicShopPlayerListener.onPlayerInteract(Dy namicShopPlayerListener.java:59) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:301) ... 14 more 10:30:09 [INFO] GroupManager - INFO - Data files refreshed. 10:31:05 [SEVERE] Could not pass event PlayerInteractEvent to DynamicShop org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven t(CraftEventFactory.java:176) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9 4) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java :129) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java :169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7 8) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.zylinder.dynamicshop.PlayerHandler.checkInventory(PlayerHandler.ja va:137) at me.zylinder.dynamicshop.TransactionHandler.buyGlobal(TransactionHandl er.java:85) at me.zylinder.dynamicshop.SignHandler.leftClickGlobal(SignHandler.java: 186) at me.zylinder.dynamicshop.DynamicShopPlayerListener.onPlayerInteract(Dy namicShopPlayerListener.java:59) at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:301) ... 14 more
hooray to perfect formatting :S sry