Changing Currency
Shop supports all item economies and all economies running on Vault. If your server uses as economy that does not use Vault, I would highly recommend switching because many other plugins can hook into Vault as well.
Configuration
The default configuration contains a few variables that you can change to fit your server's needs.
AUTO-UPDATE: change this to false if you do not want Shop to update to the latest version once a new file is released.
usePermissions: change this to true if you want to use permissions. If you do not know what this means leave it as false.
useVault: If you wish to use money instead of items as currency and you have Vault installed, set this to true.
itemCurrency (non-vault): If you wish to use items as currency, this is the id of the item that you will be using. The default item is Emeralds but you can change this to whatever you like.
You can use this full list of materials here to find the material you want to use. Make sure to copy the name exactly (including case).
displayName: This is what your currency will be called. Whether you decided to use items as currency or not, this is the name of your currency that will be displayed. So if you wanted your currency on your server to be called "Dollars", then you would change this to "Dollar" and the plugin will automatically make it Dollar(s).
currencyToStartWith: This is how much money players on your server will start with when they first join the server. Be careful though, if there is another plugin that also gives players money to start out with, you may not want to change this or they will receive more than they should.
maxDurabilityMargin: This controls how "broken" players can sell their items. For example, a player decides to make a shop which sells an item which is at 70% durability. If this is set at 5%, that player will only be able to stock their shop with items that are at 65% durability or higher. Don't worry though, players can check the items stats including durability by clicking the chest of a shop before they purchase anything from it.
je n'arrive pas a la configue pour utiliser en $ a la place de emerode quelque peux me faire un copier coller de son fichier texte Config merci
le mien :
AUTO-UPDATE: true
usePermissions:
false
http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html #
Economy: useVault 'true # itemCurrency false : emerode displayName: Rupee
currencyToStartWith: 0
Quick question. When using items as currency, you have to stock your 'buy' shop with the item that is used as currency. When switching to an economy based system (such as Fe Economy) does it just automatically take the money from the shop owner's money?
I am really confused on how to set the currency to another item. Not even setting the currency name is working, A walk-through would really help.
Yes a walkthrough would definitely help. This is what my config file looks like:
<<code lua>>
# Thanks for downloading Shop! #
#——————————————————————————————#
AUTO-UPDATE: true
usePermissions: false
# If you want to use virtual money, install the plugin Vault and set ‘useVault to true #
# For itemCurrencyID, see http://www.minecraftinfo.com/idlist.htm #
Economy:
useVault: false
itemCurrencyID (non-vault): 264;0
displayName: Diamonds
currencyToStartWith: 5# Allowable percent difference in durabilities of items in shops #
maxDurabilityMargin: 5
<</code>>
but in game, the shops still use "Rupees"
even on the server it says emeralds are the currency.. I assumed it was the update not working, and that may be, but i can't tell.....
here's what the server says:
<<code lua>>
C:\Users\ME\Documents\Minecraft\Bukkit\My World>java -Xmx1024M -jar craftbuk
kit.jar -o true
17:27:48 [INFO] Starting minecraft server version 1.6.4
17:27:48 [INFO] Loading properties
17:27:48 [INFO] Default game type: SURVIVAL
17:27:48 [INFO] Generating keypair
17:27:49 [INFO] Starting Minecraft server on *:25565
17:27:49 [INFO] This server is running CraftBukkit version git-Bukkit-1.6.4-R2.0
-b2918jnks (MC: 1.6.4) (Implementing API version 1.6.4-R2.0)
17:27:49 [INFO] [Shop] Loading Shop v1.4.8
17:27:49 [INFO] Preparing level "My World"
17:27:49 [INFO] Preparing start region for level 0 (Seed: 1273570472534601379)
17:27:50 [INFO] Preparing start region for level 1 (Seed: 1273570472534601379)
17:27:51 [INFO] Preparing start region for level 2 (Seed: 1273570472534601379)
17:27:51 [INFO] [Shop] Enabling Shop v1.4.8
17:27:51 [SEVERE] Cannot load plugins\Shop\config.yml
org.bukkit.configuration.InvalidConfigurationException expected '<document star
t>', but found BlockMappingStart
in "<string>", line 4, column 1:
AUTO-UPDATE: true
^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
nfiguration.java:55
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
n.java:138)
at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguratio
n.java:105)
at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(Yam
lConfiguration.java:175
at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
at com.snowgears.shop.Shop.onEnable(Shop.java:79)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
r.java:381)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.jav
a:284)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.
java:266)
at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:3
15)
at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:2
92)
at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:2
52)
at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.jav
a:152)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java
:393)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:5
83)
Caused by: expected '<document start>', but found BlockMappingStart
in "<string>", line 4, column 1:
AUTO-UPDATE: true
^
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(Parse
rImpl.java:231
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:109)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
tructor.java:121
at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlCo
nfiguration.java:53
... 17 more
17:27:52 [INFO] [Shop] Shops will use emerald as the currency on the server.
17:27:52 [INFO] Server permissions file permissions.yml is empty, ignoring it
17:27:52 [INFO] Done (3.203s)! For help, type "help" or "?"
>
<</code>>
so what's going on? why is [SEVERE] happening and can't load config file. it does the same thing for the default config file...someone help
@Ajakks
I am having the same problem!
Does this have to do with the start of the string?
EDIT: I found the fix!!! all you need to do is remove all the comments! AKA the stuff inside this symbol #
Everytime i place a sign, i use the format listed:
[shop] Amount of item Price Adminbuy /or badmin /or buyadmin etc...
but everytime i click done and get ready to place the item, the following error occurs: "The amount (Line 2) needs to be a number.
I have no idea what this means and have no idea how to fix it because i am very obviously placing a number on the second line.
How do i fix this?!? Please Help!!!
I really like this plugin I wish it would work! I want to use boseconomy dollars with it, but it repeatedly says: Default system encoding may have misread config.yml from plugin jar Shops will use emeralds as the currency on the server PLZ somebody help. I'd appreciate it very much, thank you :) 174.100.151.57
@dublehoody check the config?or show me,want help you.
When i try to sell an item, it tells me to hit the sign with the item i wish to sell, i hit the sign and nothing happens. also when i try to make a buy sign, it doesn't give me the item i want to buy from the sign.
@itzdaniel483
Me too.. .it's because it's an older version