mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00:00
Added configurable language for everything and more
This can read the default minecraft language files, but in order to translate the messages, you need to add the message section from the en_US.lang. Also, spawn eggs will work now, the title of music discs will be displayed in the info sections and "tipped arrow effect" is now named "potion effect" and is displayed also if the product is a potion, splashed potion or a lingering potion (and of course tipped arrows). The message configuration is no longer found in the config.yml file, but has gone to the .lang file, so you need to reconfigure every message! As the Jsoup library is no longer needed, the filesize of the final jar shrunk quite a bit. Maybe there are some more changes, which I already forgot.
This commit is contained in:
parent
77d474fb03
commit
08286e6beb
290
config.yml
290
config.yml
@ -1,42 +1,16 @@
|
||||
# ===============================================
|
||||
# == Default Configuration File of 'ShopChest' ==
|
||||
# ====== Configuration File of 'ShopChest' ======
|
||||
# ===============================================
|
||||
#
|
||||
# Lines starting with '#' are comments and are ignored by the server.
|
||||
#
|
||||
# If you are using special characters be sure to save this file in ANSI encoding!
|
||||
#
|
||||
# Color Codes (Must be BEFORE Formatting Codes):
|
||||
# &0 = Black
|
||||
# &1 = Dark Blue
|
||||
# &2 = Dark Green
|
||||
# &3 = Dark Aqua
|
||||
# &4 = Dark Red
|
||||
# &5 = Dark Purple
|
||||
# &6 = Gold
|
||||
# &7 = Gray
|
||||
# &8 = Dark Gray
|
||||
# &9 = Blue
|
||||
# &a = Green
|
||||
# &b = Aqua
|
||||
# &c = Red
|
||||
# &d = Light Purple
|
||||
# &e = Yellow
|
||||
# &f = White
|
||||
#
|
||||
# Formatting Codes (Must be AFTER Color Codes):
|
||||
# &k = Obfuscated
|
||||
# &l = Bold
|
||||
# &m = Strikethrough
|
||||
# &n = Underline
|
||||
# &o = Italic
|
||||
# &r = Reset
|
||||
# \n = Extra line
|
||||
|
||||
# Set the main command you have to enter to manage the shops (default: "/shop ...")
|
||||
# DO NOT USE COLOR-/FORMATTING CODES HERE!
|
||||
main-command-name: "shop"
|
||||
|
||||
# Set the language of the item-, enchantment-, potion- and arrow-effect names
|
||||
# The value must equal to the name of one of a file in the 'lang' folder (without the '.lang' extension)
|
||||
language-file: "de_DE"
|
||||
|
||||
# Set the maximal distance to the shop where the player can see the hologram.
|
||||
# Value MUST be a number (e.g. 1, 1.5, 2.75, ...)
|
||||
maximal-distance: 1.75
|
||||
@ -86,7 +60,7 @@ database:
|
||||
# Either use 'SQLite' or 'MySQL'. Otherwise you will break the plugin!
|
||||
type: "SQLite"
|
||||
|
||||
# If the specified is 'MySQL', specify the...
|
||||
# If the specified type is 'MySQL', here you configure the...
|
||||
# (You can leave this empty if you're using SQLite)
|
||||
mysql:
|
||||
|
||||
@ -127,254 +101,4 @@ shop-limits:
|
||||
# Important: You must have exactly 4 spaces between the text and the edge.
|
||||
player: []
|
||||
# "EpicEric": 50
|
||||
# "898afbbe-6566-4a0f-b0ac-145868b3cb12": 50
|
||||
|
||||
messages:
|
||||
|
||||
# Set the message when a shop is created at the clicked chest.
|
||||
shop-created: "&6Shop created."
|
||||
|
||||
# Set the message when the clicked chest already is a shop.
|
||||
chest-already-shop: "&cChest already is shop."
|
||||
|
||||
# Set the message when the clicked shop is removed.
|
||||
shop-removed: "&6Shop removed."
|
||||
|
||||
# Set the message when the clicked chest is not a shop.
|
||||
chest-no-shop: "&cChest is not a shop."
|
||||
|
||||
# Set the message when the player doesn't have enough money to create a shop
|
||||
# Usable Regex: %CREATION-PRICE%
|
||||
shop-create-not-enough-money: "&cNot enough money. You need &6%CREATION-PRICE% &cto create a shop."
|
||||
|
||||
shop-info:
|
||||
|
||||
# Set the vendor message the player gets after entering '/shop info'.
|
||||
# Usable regex: %VENDOR%
|
||||
vendor: "&6Vendor: &e%VENDOR%"
|
||||
|
||||
# Set the product message the player gets after entering '/shop info'.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%
|
||||
product: "&6Product: &e%AMOUNT% x %ITEMNAME%"
|
||||
|
||||
# Set the in-stock message the player after entering '/shop info'.
|
||||
# Usable regex: %AMOUNT%
|
||||
stock: "&6In Stock: &e%AMOUNT%"
|
||||
|
||||
# Set the enchantments message the player gets after entering '/shop info' if the product is enchanted
|
||||
# Usable regex: %ENCHANTMENT%
|
||||
enchantments: "&6Enchantments: &e%ENCHANTMENT%"
|
||||
|
||||
# Set the arrow effect message the player gets after entering '/shop info' if the product is a tipped arrow (1.9 and later)
|
||||
# Usable regex: %ARROW-EFFECT%
|
||||
arrow-effect: "&6Arrow Effect: &e%ARROW-EFFECT%"
|
||||
|
||||
# If the product is a tipped arrow but it doesn't have an effect, this gets displayed instead of the arrow effect
|
||||
none: "&7None"
|
||||
|
||||
# Set the price message the player gets after entering '/shop info'.
|
||||
# Usable regex: %BUY-PRICE%, %SELL-PRICE%
|
||||
price: "&6Price: Buy: &e%BUY-PRICE%&6 Sell: &e%SELL-PRICE%"
|
||||
|
||||
# If the sell price or buy price is disabled, this message will be displayed instead of the price in the message above.
|
||||
disabled: "&7Disabled&e"
|
||||
|
||||
# Set the type message the player gets after entering '/shop info' ...
|
||||
# ... when the shop is normal.
|
||||
is-normal: "&6Type: &eNormal"
|
||||
|
||||
# ... when the shop is an admin shop.
|
||||
is-admin: "&6Type: &eAdmin"
|
||||
|
||||
# Set the message when the clicked block is not a chest.
|
||||
block-no-chest: "&cBlock is not a chest"
|
||||
|
||||
# Set the message when the player tries to create a shop with sell price and buy price set to 0
|
||||
buy-and-sell-disabled: "&cYou can't create a shop with buying and selling disabled."
|
||||
|
||||
# Set the message when the player successfully bought something.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %BUY-PRICE%, %VENDOR%
|
||||
buy-success: "&aYou bought &6%AMOUNT% x %ITEMNAME%&a for &6%BUY-PRICE%&a from &6%VENDOR%&a."
|
||||
|
||||
# Set the message when the player successfully bought something from an admin shop.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %BUY-PRICE%
|
||||
buy-success-admin: "&aYou bought &6%AMOUNT% x %ITEMNAME%&a for &6%BUY-PRICE%&a."
|
||||
|
||||
# Set the message when the player successfully sold something.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %SELL-PRICE%, %VENDOR%
|
||||
sell-success: "&aYou sold &6%AMOUNT% x %ITEMNAME%&a for &6%SELL-PRICE%&a to &6%VENDOR%&a."
|
||||
|
||||
# Set the message when the player successfully sold something to an admin shop.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %SELL-PRICE%
|
||||
sell-success-admin: "&aYou sold &6%AMOUNT% x %ITEMNAME%&a for &6%SELL-PRICE%&a."
|
||||
|
||||
# Set the message when a player bought something from the player's shop.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %BUY-PRICE%, %PLAYER%
|
||||
someone-bought: "&6%PLAYER% &abought &6%AMOUNT% x %ITEMNAME%&a for &6%BUY-PRICE%&a from your shop."
|
||||
|
||||
# Set the message when a player sold something to the player's shop.
|
||||
# Usable regex: %AMOUNT%, %ITEMNAME%, %SELL-PRICE%, %PLAYER%
|
||||
someone-sold: "&6%PLAYER% &asold &6%AMOUNT% x %ITEMNAME%&a for &6%SELL-PRICE%&a from your shop."
|
||||
|
||||
# Set the message when the inventory is full when the player is buying something.
|
||||
not-enough-inventory-space: "&cNot enough space in inventory."
|
||||
|
||||
# Set the message when the shop's inventory is full when the player is selling something.
|
||||
chest-not-enough-inventory-space: "&cShop is full."
|
||||
|
||||
# Set the message when the player doesn't have enough money to buy something.
|
||||
not-enough-money: "&cNot enough money."
|
||||
|
||||
# Set the message when the player doesn't have enough items to sell.
|
||||
not-enough-items: "&cNot enough items."
|
||||
|
||||
# Set the message when the vendor doesn't have enough money to buy something from the player
|
||||
vendor-not-enough-money: "&cVendor has not enough money."
|
||||
|
||||
# Set the message when the shop is out of stock.
|
||||
out-of-stock: "&cShop out of stock."
|
||||
|
||||
# Set the message when an error occurred.
|
||||
# Usable regex: %ERROR%
|
||||
error-occurred: "&cAn error occurred: %ERROR%"
|
||||
|
||||
# Set the message when the arguments <AMOUNT> and <PRICE> of '/shop create' are not a number.
|
||||
amount-and-price-not-number: "&cAmount and price must be a number."
|
||||
|
||||
# Set the message when the player doesn't hold an item in the hand.
|
||||
no-item-in-hand: "&cNo item in hand"
|
||||
|
||||
# Set the message when the player must click a chest to create a shop.
|
||||
click-chest-to-create-shop: "&aClick a chest to create a shop."
|
||||
|
||||
# Set the message when the player must click a shop to remove it.
|
||||
click-chest-to-remove-shop: "&aClick a shop-chest to remove the shop."
|
||||
|
||||
# Set the message when the player must click a shop to retrieve information.
|
||||
click-chest-for-info: "&aClick a shop to retrieve information."
|
||||
|
||||
# Set the message when the player opened a shop.
|
||||
# Usable regex: %VENDOR%
|
||||
opened-shop: "&aYou opened %VENDOR%'s shop."
|
||||
|
||||
# Set the message when the player tries to break a shop.
|
||||
cannot-break-shop: "&cYou can't break a shop."
|
||||
|
||||
# Set the message when the player tries to sell a broken item.
|
||||
cannot-sell-broken-item: "&cYou can't sell a broken item."
|
||||
|
||||
# Set the message when the entered buy price is below the minimum price.
|
||||
# Usable regex: %MIN-PRICE%
|
||||
buy-price-too-low: "&cThe buy price must be higher than %MIN-PRICE%."
|
||||
|
||||
# Set the message when the entered sell price is below the minimum price.
|
||||
# Usable regex: %MIN-PRICE%
|
||||
sell-price-too-low: "&cThe sell price must be higher than %MIN-PRICE%."
|
||||
|
||||
# Set the message when buying is disabled at the shop.
|
||||
buying-disabled: "&cBuying is disabled at this shop."
|
||||
|
||||
# Set the message when selling is disabled at the shop.
|
||||
selling-disabled: "&cSelling is disabled at this shop."
|
||||
|
||||
# Set the message when reloading is done.
|
||||
# Usable regex: %AMOUNT% (Amount of shops)
|
||||
reloaded-shops: "&aSuccessfully reloaded %AMOUNT% shop/s."
|
||||
|
||||
# Set the message when the player's shop limit is reached.
|
||||
# Usable regex: %LIMIT%
|
||||
shop-limit-reached: "&cYou reached your limit of &6%LIMIT% &cshop/s."
|
||||
|
||||
# Set the message that shows the player how many shop slots of his shop limit he has occupied.
|
||||
# Usable regex: %LIMIT%, %AMOUNT% (Amount of shops)
|
||||
occupied-shop-slots: "&6You have &c%AMOUNT%/%LIMIT% &6shop slot/s occupied."
|
||||
|
||||
# Set the message when the player tries to create a shop with an item which is listed in the blacklist.
|
||||
cannot-sell-item: "&cYou cannot create a shop with this item."
|
||||
|
||||
update:
|
||||
|
||||
# Set the message when an update is available.
|
||||
# Usable regex: %VERSION%
|
||||
update-available: "&6&lVersion &c%VERSION% &6of &cShopChest &6is available &chere."
|
||||
|
||||
# Set the message you get when hovering over the available message.
|
||||
click-to-download: "Click to download"
|
||||
|
||||
# Set the message when no update is available.
|
||||
no-update: "&6&lNo new update available."
|
||||
|
||||
# Set the message when the update checker is started.
|
||||
checking: "&6&lChecking for updates..."
|
||||
|
||||
# Set the message when an error occurs while checking for updates.
|
||||
error: "&c&lError while checking for updates."
|
||||
|
||||
hologram:
|
||||
|
||||
# Set the text in the first row of the shop's hologram
|
||||
# Usable regex: %ITEMNAME%, %AMOUNT%
|
||||
format: "%AMOUNT% * %ITEMNAME%"
|
||||
|
||||
# Set the text in the second row of the shop's hologram when the player can buy and sell an item.
|
||||
# Usable regex: %BUY-PRICE%, %SELL-PRICE%
|
||||
buy-and-sell: "Buy %BUY-PRICE% | %SELL-PRICE% Sell"
|
||||
|
||||
# Set the text in the second row of the shop's hologram when the player can only buy an item.
|
||||
# Usable regex: %BUY-PRICE%
|
||||
only-buy: "Buy %BUY-PRICE%"
|
||||
|
||||
# Set the text in the second row of the shop's hologram when the player can only sell an item.
|
||||
# Usable regex: %SELL-PRICE%
|
||||
only-sell: "Sell %SELL-PRICE%"
|
||||
|
||||
no-permission:
|
||||
|
||||
# Set the message when a not permitted player tries to create a shop.
|
||||
create: "&cYou don't have permission to create a shop."
|
||||
|
||||
# Set the message when a not permitted player tries to create an admin shop.
|
||||
create-admin: "&cYou don't have permission to create an admin shop."
|
||||
|
||||
# Set the message when a not permitted player tries to open another player's shop.
|
||||
open-others: "&cYou don't have permission to open this chest."
|
||||
|
||||
# Set the message when a not permitted player tries to buy something.
|
||||
buy: "&cYou don't have permission to buy something."
|
||||
|
||||
# Set the message when a not permitted player tries to sell something.
|
||||
sell: "&cYou don't have permission to sell something."
|
||||
|
||||
# Set the message when a not permitted player tries to remove another player's shop.
|
||||
remove-others: "&cYou don't have permission to remove this shop."
|
||||
|
||||
# Set the message when a not permitted player tries to reload the shops.
|
||||
reload: "&cYou don't have permission to reload the shops."
|
||||
|
||||
# Set the message when a not permitted player tries to check for updates.
|
||||
update: "&cYou don't have permission to check for updates."
|
||||
|
||||
# Set the message when a not permitted player tries to view the shop limits.
|
||||
limits: "&cYou don't have permission to view the shop limits."
|
||||
|
||||
command-description:
|
||||
|
||||
# Set the command description message for '/<main-command> create' when you type '/<main-command>'.
|
||||
create: "Create a shop."
|
||||
|
||||
# Set the command description message for '/<main-command> remove' when you type '/<main-command>'.
|
||||
remove: "Remove a shop."
|
||||
|
||||
# Set the command description message for '/<main-command> info' when you type '/<main-command>'.
|
||||
info: "Retrieve shop information."
|
||||
|
||||
# Set the command description message for '/<main-command> reload' when you type '/<main-command>'.
|
||||
reload: "Reload shops."
|
||||
|
||||
# Set the command description message for '/<main-command> update' when you type '/<main-command>'.
|
||||
update: "Check for Updates."
|
||||
|
||||
# Set the command description message for '/<main-command> limits' when you type '/<main-command>'.
|
||||
limits: "View shop limits."
|
||||
|
||||
# End of file.
|
||||
# "898afbbe-6566-4a0f-b0ac-145868b3cb12": 50
|
1528
lang/de_DE.lang
Normal file
1528
lang/de_DE.lang
Normal file
File diff suppressed because it is too large
Load Diff
1691
lang/en_US.lang
Normal file
1691
lang/en_US.lang
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,106 +0,0 @@
|
||||
AElig=000C6
|
||||
AMP=00026
|
||||
Aacute=000C1
|
||||
Acirc=000C2
|
||||
Agrave=000C0
|
||||
Aring=000C5
|
||||
Atilde=000C3
|
||||
Auml=000C4
|
||||
COPY=000A9
|
||||
Ccedil=000C7
|
||||
ETH=000D0
|
||||
Eacute=000C9
|
||||
Ecirc=000CA
|
||||
Egrave=000C8
|
||||
Euml=000CB
|
||||
GT=0003E
|
||||
Iacute=000CD
|
||||
Icirc=000CE
|
||||
Igrave=000CC
|
||||
Iuml=000CF
|
||||
LT=0003C
|
||||
Ntilde=000D1
|
||||
Oacute=000D3
|
||||
Ocirc=000D4
|
||||
Ograve=000D2
|
||||
Oslash=000D8
|
||||
Otilde=000D5
|
||||
Ouml=000D6
|
||||
QUOT=00022
|
||||
REG=000AE
|
||||
THORN=000DE
|
||||
Uacute=000DA
|
||||
Ucirc=000DB
|
||||
Ugrave=000D9
|
||||
Uuml=000DC
|
||||
Yacute=000DD
|
||||
aacute=000E1
|
||||
acirc=000E2
|
||||
acute=000B4
|
||||
aelig=000E6
|
||||
agrave=000E0
|
||||
amp=00026
|
||||
aring=000E5
|
||||
atilde=000E3
|
||||
auml=000E4
|
||||
brvbar=000A6
|
||||
ccedil=000E7
|
||||
cedil=000B8
|
||||
cent=000A2
|
||||
copy=000A9
|
||||
curren=000A4
|
||||
deg=000B0
|
||||
divide=000F7
|
||||
eacute=000E9
|
||||
ecirc=000EA
|
||||
egrave=000E8
|
||||
eth=000F0
|
||||
euml=000EB
|
||||
frac12=000BD
|
||||
frac14=000BC
|
||||
frac34=000BE
|
||||
gt=0003E
|
||||
iacute=000ED
|
||||
icirc=000EE
|
||||
iexcl=000A1
|
||||
igrave=000EC
|
||||
iquest=000BF
|
||||
iuml=000EF
|
||||
laquo=000AB
|
||||
lt=0003C
|
||||
macr=000AF
|
||||
micro=000B5
|
||||
middot=000B7
|
||||
nbsp=000A0
|
||||
not=000AC
|
||||
ntilde=000F1
|
||||
oacute=000F3
|
||||
ocirc=000F4
|
||||
ograve=000F2
|
||||
ordf=000AA
|
||||
ordm=000BA
|
||||
oslash=000F8
|
||||
otilde=000F5
|
||||
ouml=000F6
|
||||
para=000B6
|
||||
plusmn=000B1
|
||||
pound=000A3
|
||||
quot=00022
|
||||
raquo=000BB
|
||||
reg=000AE
|
||||
sect=000A7
|
||||
shy=000AD
|
||||
sup1=000B9
|
||||
sup2=000B2
|
||||
sup3=000B3
|
||||
szlig=000DF
|
||||
thorn=000FE
|
||||
times=000D7
|
||||
uacute=000FA
|
||||
ucirc=000FB
|
||||
ugrave=000F9
|
||||
uml=000A8
|
||||
uuml=000FC
|
||||
yacute=000FD
|
||||
yen=000A5
|
||||
yuml=000FF
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user