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;
|
2017-11-13 15:11:22 +01:00
|
|
|
import com.Acrobot.Breeze.Configuration.Configuration;
|
2012-11-23 20:59:12 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Acrobot
|
|
|
|
*/
|
|
|
|
public class Messages {
|
2017-07-04 17:06:34 +02:00
|
|
|
public static String prefix = "&a[Shop] &r";
|
|
|
|
public static String iteminfo = "&aItem Information: &r";
|
2020-05-03 16:05:24 +02:00
|
|
|
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
|
2019-11-04 17:26:22 +01:00
|
|
|
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!";
|
2018-01-27 17:12:34 +01:00
|
|
|
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!";
|
2018-08-23 23:10:24 +02:00
|
|
|
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.";
|
2018-08-23 23:10:24 +02:00
|
|
|
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.";
|
2018-08-23 23:10:24 +02:00
|
|
|
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.";
|
2018-08-23 23:10:24 +02:00
|
|
|
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!";
|
2020-03-24 00:31:08 +01:00
|
|
|
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!";
|
2018-05-07 16:32:51 +02:00
|
|
|
|
2019-01-17 18:08:54 +01:00
|
|
|
@PrecededBySpace
|
|
|
|
public static String SELL_PRICE_ABOVE_MAX = "Sell price is above maximum!";
|
2019-01-18 22:27:40 +01:00
|
|
|
public static String SELL_PRICE_BELOW_MIN ="Sell price is below minimum!";
|
2019-01-17 18:08:54 +01:00
|
|
|
public static String BUY_PRICE_ABOVE_MAX = "Buy price is above maximum!";
|
|
|
|
public static String BUY_PRICE_BELOW_MIN ="Buy price is below minimum!";
|
|
|
|
|
2018-01-07 02:11:59 +01:00
|
|
|
@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!";
|
2018-05-07 16:32:51 +02:00
|
|
|
|
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!";
|
2018-09-09 14:24:26 +02:00
|
|
|
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!";
|
|
|
|
|
2014-05-20 23:13:25 +02:00
|
|
|
@PrecededBySpace
|
|
|
|
public static String TOGGLE_MESSAGES_OFF = "You will no longer receive messages from your shop(s).";
|
2014-05-24 11:15:54 +02:00
|
|
|
public static String TOGGLE_MESSAGES_ON = "You will now receive messages from your shop(s).";
|
2014-05-20 23:13:25 +02:00
|
|
|
|
2019-09-16 13:56:30 +02:00
|
|
|
@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) {
|
2018-05-07 16:32:51 +02:00
|
|
|
return Configuration.getColoured(prefix + message);
|
2012-11-23 20:59:12 +01:00
|
|
|
}
|
2020-05-03 16:05:24 +02: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
|
|
|
}
|