1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2025-10-02 12:37:27 +00:00

Version 0.9

Compatible with Bukkit 1.8.7
Improved items name display, especially for very long names.
This commit is contained in:
KaiKikuchi
2015-07-05 16:05:58 +02:00
commit 3755036137
40 changed files with 6189 additions and 0 deletions

View File

@ -0,0 +1,78 @@
#Tax amount (decimal) - Eg, P1 buys $50 worth of stuff from P2. Therefore, P1 loses $50, P2 gains $(1-0.05)*50, and tax-account gains $(0.05)*50.
tax: 0.05
#The fake player who money from taxing people goes to
tax-account: tax
#Whether or not to show taxes paid when selling to a shop
show-tax: false
#Should we log transactions/creations to Bukkit\Plugins\QuickShop\qs.log?
log-actions: true
#For item-item based economies that don't use virtual coins.
whole-number-prices-only: false
database:
mysql: false
host: localhost
port: 3306
database: quickshop
user: root
password: passwd
#Limits the number of shops a person can create and own at a single time.
limits:
#Disable these if you're not using them! If this is false, the rest of this section is ignored
use: false
#The default number of shops players can make
default: 10
#Players with these permissions can create these amounts of shops.
ranks:
#Anyone with 'quickshop.vip' permissions, can create 20 shops instead of 10.
quickshop.vip: 20 #Players with quickshop.vip can make 20 shops.
#A list of block (materials) which can be used to create shops.
#By default, chests are added to this list.
#This will only work for blocks which implement InventoryHolder
#in other words, no enderchest shops, no shops on dirt blocks, etc.
#May cause unexpected behaviour with some blocks... Eg don't make a
#shop on a hopper (It sucks the display item in) and furnace shops
#allow players to put whatever item they want in all 3 slots and
#dispenser shops aren't protected from redstone... Etc.
shop-blocks:
- CHEST
- TRAPPED_CHEST
shop:
#Cost to make a stall
cost: 10
#Should we refund when their shops are deleted/removed/broken?
refund: false
#Is there a fee for changing prices on a shop (Help deter endless undercutting)
price-change-requires-fee: true
#If price changes require a fee, how much is the fee
fee-for-price-change: 50
#Should we try and lock their shops from other players, so people can't steal from them?
lock: true
#Should we require players be sneaking to create and use shops?
sneak-to-create: false
sneak-to-trade: false
#Should we automatically create the sign for the chest?
auto-sign: true
#If a player owns an unlimited shop, should they receive the cash from it or not?
#If you buy from YOUR unlimited shop, you will NEVER be charged $$, regardless of this setting
pay-unlimited-shop-owners: false
#Should we place display items on the chests?
display-items: true
#Should we place item frames on chests?
frame-items: true
#When someone uses /qs find <item>, how far should we search in blocks?
#This command lets users shop quickly without wasting time searching
#Settings > 100 WILL cause lag. Don't do it, or don't cry when your server lags.
find-distance: 45
#List of items to disallow selling of. Anyone with quickshop.bypass.<itemID> can bypass it
blacklist:
- 7 #Bedrock

View File

@ -0,0 +1,104 @@
# Colors:
# &0-9, &a-f
# {0}, {1}, {2}, etc are variables. You can swap them around, but adding a new variable won't work. Removing them will work
not-looking-at-shop: "&cNo QuickShop found. You must be looking at one."
no-permission: "&cYou do not have permission to do that."
no-creative-break: "&cYou cannot break other players shops in creative mode. Use survival instead."
no-double-chests: "&cYou don't have permission to create a double-chest shop."
shop-already-owned: "&cThat is already a shop."
chest-was-removed: "&cThat chest was removed."
price-too-cheap: "&cPrice must be greater than &e$0.01"
no-price-change: "&cThat wouldn't result in a price change!"
you-cant-afford-a-new-shop: "&cIt costs {0} to create a new shop."
player-bought-from-your-store-tax: "&c{0} purchased {1} {2} from your store, and you paid {3} in taxes."
you-cant-afford-to-change-price: "&cIt costs {0} to change the price in your shop."
success-created-shop: "&aCreated shop."
success-removed-shop: "&aShop removed."
shops-arent-locked: "&cRemember, shops are NOT protected from theft! If you want to stop thieves, lock it with LWC, Lockette, etc!"
shop-creation-cancelled: "&cCancelled Shop Creation."
shop-purchase-cancelled: "&cCancelled Shop Purchase."
shop-stock-too-low: "&cThe shop only has {0} {1} left"
you-cant-afford-to-buy: "&cThat costs {0}, but you only have {1}"
negative-amount: "&cDerp, can't trade negative amounts"
player-bought-from-your-store: "&c{0} purchased {1} {2} from your store."
shop-out-of-stock: "&5Your shop at {0}, {1}, {2}, has run out of {3}"
shop-has-no-space: "&cThe shop only has room for {0} more {1}."
you-dont-have-that-many-items: "&cYou only have {0} {1}."
the-owner-cant-afford-to-buy-from-you: "&cThat costs {0} but the owner only has {1}"
player-sold-to-your-store: "&a{0} sold {1} {2} to your store."
shop-out-of-space: "&5Your shop at {0}, {1}, {2}, is now full."
fee-charged-for-price-change: "&aYou pay &c{0}&a to change the price."
price-is-now: "&aThe shops new price is &e{0}"
thats-not-a-number: "&cInvalid number"
no-price-given: "&cPlease give a valid price."
average-price-nearby: "&aAverage Price Nearby: &e{0}"
shop-has-changed: "&cThe shop you tried to use has changed since you clicked it!"
nearby-shop-this-way: "&aShop is {0} blocks away from you."
no-nearby-shop: "&cNo shops matching {0} nearby."
buying-more-than-selling: "&cWARNING: You are buying items for more than you are selling them!"
not-enough-space: "&cYou only have room for {0} more of that!"
refill-success: "&aRefill success"
empty-success: "&aEmpty success"
menu:
successful-purchase: "&aSuccessfully Purchased:"
successfully-sold: "&aSuccessfully Sold:"
item-name-and-price: "&e{0} {1} &afor &e{2}"
sell-tax: "&aYou paid &e{0} &ain taxes."
sell-tax-self: "&aYou own this shop so you don't pay taxes."
enchants: "&5Enchants"
stored-enchants: "&5Stored Enchants"
shop-information: "&aShop Information:"
owner: "&aOwner: {0}"
item: "&aItem: &e{0}"
space: "&aSpace: &e{0}"
stock: "&aStock &e{0}"
price-per: "&aPrice per &e{0} &a- &e{1}"
total-value-of-chest: "&aTotal value of Chest: &e{0}"
damage-percent-remaining: "&e{0}% &aRemaining."
this-shop-is-buying: "&aThis shop is &dBUYING&a items."
this-shop-is-selling: "&aThis shop is &bSELLING&a items."
bypassing-lock: "&cBypassing a QuickShop lock!"
that-is-locked: "&cThat shop is locked."
how-many-buy: "&aEnter how many you wish to &bBUY&a in chat."
how-many-sell: "&aEnter how many you wish to &dSELL&a in chat. You have &e{0}&a available"
not-allowed-to-create: "&cYou may not create a shop here."
blacklisted-item: "&cThat item is blacklisted. You may not sell it"
how-much-to-trade-for: "&aEnter how much you wish to trade one &e{0}&a for in chat."
command:
#success-created-unlimited: "&aUnlimited QuickShop created."
toggle-unlimited: "&aShop is now {0}"
no-owner-given: "&cNo owner given. Use &a/qs setowner <player>&c"
new-owner: "&aNew owner: &e{0}"
now-buying: "&aNow &dBUYING&a &e{0}"
now-selling: "&aNow &bSELLING &e{0}"
cleaning: "&aCleaning up shops with 0 stock..."
reloading: "&aReloading..."
cleaned: "&aCleaned &e{0}&a shops"
no-type-given: "&cUsage: /qs find <item>"
description:
title: "&aQuickShop Help"
unlimited: "&eMakes a shop unlimited"
setowner: "&eChanges who owns a shop"
buy: "&eChanges a shop to &dBUY&e mode"
sell: "&eChanges a shop to &bSELL&e mode"
clean: "&eRemoves all (loaded) shops with 0 stock"
price: "&eChanges the buy/selling price of one of your shops"
find: "&eLocates the nearest shop of a specific type."
reload: "&eReloads QuickShop from config.yml"
refill: "&eAdds a given number of items to a shop"
empty: "&eRemoves all stock from a shop"
signs:
#Line 1 is used as an identifier at the moment, so I kind of need it to work, thats why I won't let you change it
#Line 3 is the item name... There really isnt anything to change.
selling: "Selling {0}"
buying: "Buying {0}"
price: "For {0} each"

View File

@ -0,0 +1,54 @@
name: ${name}
main: ${package}.${name}
version: ${version}
author: Netherfoam, Timtower, KaiNoMood
description: Economy Shops plugin
softdepend: [Herochat, Vault]
commands:
qs:
description: QuickShop command
usage: /qs
aliases: [shop]
permissions:
quickshop.create.sell:
description: Allows a player to sell from a shop
default: op
quickshop.create.buy:
description: Allows a player to buy from a shop
default: op
quickshop.create.double:
description: Allows a player to create a double shop
default: op
quickshop.use:
description: Allows a player to buy/sell using other players shops
default: true
quickshop.unlimited:
description: Allows a Staff Member to use /qs unlimited and make a shop infinite
quickshop.bypass.<itemID>:
description: Allows a player to sell <itemID>, even if its blacklisted
quickshop.other.destroy:
description: Allows a Staff Member to destroy other players shops if they are locked in the config
quickshop.other.open:
description: Allows a Staff Member to open someone elses shop if they are locked in the config
quickshop.other.price:
description: Allows a Staff Member to change the price of someone elses shop
quickshop.setowner:
description: Allows a Staff Member to change the owner of any shop
quickshop.find:
description: Allows a player to locate the nearest shop of a specific item type. Works in a 3 chunk radius.
default: true
quickshop.refill:
description: Allows a Staff Member to refill the shop theyre looking at with the given number of items.
default: op
quickshop.empty:
description: Allows a Staff Member to empty the shop theyre looking at of all items.
default: op
quickshop.debug:
description: Enables debug info to console
default: op
quickshop.export:
description: Allows exporting database to mysql or sqlite
default: op