ChestShop-3/src/main/java/com/Acrobot/ChestShop/Configuration/Messages.java

110 lines
5.5 KiB
Java
Raw Normal View History

2012-11-23 20:59:12 +01:00
package com.Acrobot.ChestShop.Configuration;
2013-04-23 20:09:23 +02:00
import com.Acrobot.Breeze.Configuration.Annotations.PrecededBySpace;
import com.Acrobot.Breeze.Configuration.Configuration;
2012-11-23 20:59:12 +01:00
/**
* @author Acrobot
*/
public class Messages {
public static String prefix = "&a[Shop] &r";
public static String iteminfo = "&aItem Information: &r";
public static String iteminfo_fullname = "&fFull Name: &7%item";
public static String iteminfo_shopname = "&fShop Sign: &7%item";
public static String iteminfo_repaircost = "&fRepair Cost: &7%cost";
public static String iteminfo_book = "&fBook Title: &7%title\n&fBook Author: &7%author\n&fBook Pages: &7%pages";
public static String iteminfo_book_generatopm = "&fBook Generation: &7%generation";
public static String iteminfo_lore = "&fLore: \n&r%lore";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
public static String ACCESS_DENIED = "You don't have permission to access that shop's storage container!";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String NOT_ENOUGH_MONEY = "You don't have enough money!";
public static String NOT_ENOUGH_MONEY_SHOP = "Shop owner doesn't have enough money!";
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2013-01-24 22:35:28 +01:00
public static String CLIENT_DEPOSIT_FAILED = "Money deposit to your account failed!";
public static String SHOP_DEPOSIT_FAILED = "Money deposit to shop owner failed!";
public static String NO_ECONOMY_ACCOUNT = "Economy account from shop owner doesn't exist!";
2013-01-24 22:35:28 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String NO_BUYING_HERE = "You can't buy here!";
public static String NO_SELLING_HERE = "You can't sell here!";
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String NOT_ENOUGH_SPACE_IN_INVENTORY = "You haven't got enough space in inventory!";
public static String NOT_ENOUGH_SPACE_IN_CHEST = "There isn't enough space in chest!";
public static String NOT_ENOUGH_ITEMS_TO_SELL = "You don't have enough items to sell!";
public static String NOT_ENOUGH_SPACE_IN_YOUR_SHOP = "%price %item&7 shop at &r%world/%x/%y/%z&7 is full! (%seller tried to sell)";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String NOT_ENOUGH_STOCK = "This shop is out of stock.";
public static String NOT_ENOUGH_STOCK_IN_YOUR_SHOP = "%price %item&7 shop at &r%world/%x/%y/%z&7 is out of stock! (%buyer tried to buy)";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String YOU_BOUGHT_FROM_SHOP = "You bought %item from %owner for %price.";
public static String SOMEBODY_BOUGHT_FROM_YOUR_SHOP = "%buyer bought %item for %price from your shop at %world/%x/%y/%z.";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String YOU_SOLD_TO_SHOP = "You sold %item to %buyer for %price.";
public static String SOMEBODY_SOLD_TO_YOUR_SHOP = "%seller sold %item for %price to your shop at %world/%x/%y/%z.";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String YOU_CANNOT_CREATE_SHOP = "You can't create this type of shop!";
public static String NO_CHEST_DETECTED = "Couldn't find a chest!";
2013-02-01 19:28:52 +01:00
public static String INVALID_SHOP_DETECTED = "The shop cannot be used!";
public static String INVALID_SHOP_PRICE = "The shop has an invalid price!";
public static String INVALID_SHOP_QUANTITY = "The shop has an invalid quantity!";
2012-11-23 20:59:12 +01:00
public static String CANNOT_ACCESS_THE_CHEST = "You don't have permissions to access this chest!";
@PrecededBySpace
public static String SELL_PRICE_ABOVE_MAX = "Sell price is above maximum!";
public static String SELL_PRICE_BELOW_MIN ="Sell price is below minimum!";
public static String BUY_PRICE_ABOVE_MAX = "Buy price is above maximum!";
public static String BUY_PRICE_BELOW_MIN ="Buy price is below minimum!";
@PrecededBySpace
public static String CLICK_TO_AUTOFILL_ITEM = "Click the sign with the item that this shop is for!";
public static String NO_ITEM_IN_HAND = "You don't have an item in your hand to autofill!";
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String PROTECTED_SHOP = "Successfully protected the shop with LWC!";
2020-02-15 18:20:55 +01:00
public static String PROTECTED_SHOP_SIGN = "Successfully protected the shop sign with LWC!";
2012-11-23 20:59:12 +01:00
public static String SHOP_CREATED = "Shop successfully created!";
2013-01-24 22:35:28 +01:00
public static String SHOP_FEE_PAID = "You have been charged %amount";
2012-11-23 20:59:12 +01:00
public static String SHOP_REFUNDED = "You have been refunded %amount.";
2013-10-27 16:49:21 +01:00
public static String ITEM_GIVEN = "Given %item to %player.";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2013-03-03 17:25:50 +01:00
public static String RESTRICTED_SIGN_CREATED = "Sign successfully created!";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2013-10-27 16:49:21 +01:00
public static String PLAYER_NOT_FOUND = "Player not found!";
2012-11-23 20:59:12 +01:00
public static String NO_PERMISSION = "You don't have permissions to do that!";
public static String INCORRECT_ITEM_ID = "You have specified an invalid item id!";
2012-12-31 02:46:21 +01:00
public static String NOT_ENOUGH_PROTECTIONS = "Could not create a protection!";
2012-11-23 20:59:12 +01:00
2013-04-23 20:09:23 +02:00
@PrecededBySpace
2012-11-23 20:59:12 +01:00
public static String CANNOT_CREATE_SHOP_HERE = "You can't create shop here!";
@PrecededBySpace
public static String TOGGLE_MESSAGES_OFF = "You will no longer receive messages from your shop(s).";
public static String TOGGLE_MESSAGES_ON = "You will now receive messages from your shop(s).";
@PrecededBySpace
public static String TOGGLE_ACCESS_ON = "You can no longer trade at shops that you have access to";
public static String TOGGLE_ACCESS_OFF = "You can now trade at shops that you have access to";
2012-11-23 21:00:35 +01:00
public static String prefix(String message) {
return Configuration.getColoured(prefix + message);
2012-11-23 20:59:12 +01:00
}
public static String replace(String message, String... replacements) {
for (int i = 0; i + 1 < replacements.length; i+=2) {
message = message.replace("%" + replacements[i], replacements[i+1]);
}
return message;
}
2012-11-23 20:59:12 +01:00
}