Prevent players from breaking shops while they are conversing, Fixes #7

This commit is contained in:
Len
2022-08-31 10:08:19 +02:00
parent e4d4ebb8b4
commit e49906fc75
2 changed files with 14 additions and 2 deletions
@@ -23,10 +23,12 @@ public class MessageConfig extends AbstractConfiguration {
public static String SHOP_ALREADY_EXISTS = "<red>This block is already a Shop</red>";
public static String NO_SHOP_CREATE_PERMISSION = "<red>You don't have permission to create shops.</red>";
public static String SHOP_LIMIT_REACHED = "<red>You cannot create this shop as you already have reached the limit (<limit>).</red>";
public static String BREAK_SHOP_WHILE_CONVERSING = "<red>You can not break shop signs while editing them.</red>";
void loadErrorMessages() {
SHOP_ALREADY_EXISTS = getString("errors.shop-already-exists", SHOP_ALREADY_EXISTS);
NO_SHOP_CREATE_PERMISSION = getString("errors.no-shop-create-permission", NO_SHOP_CREATE_PERMISSION);
SHOP_LIMIT_REACHED = getString("errors.shop-limit-reached", SHOP_LIMIT_REACHED);
BREAK_SHOP_WHILE_CONVERSING = getString("errors.break-shop-while-conversing", BREAK_SHOP_WHILE_CONVERSING);
}
}