Skip to content

Commit 95340e9

Browse files
committed
Mark SHOP_SIGN_PREFIX pending to deletion
1 parent 4b1d235 commit 95340e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
public class ContainerShop implements Shop {
6363
@JsonUtil.Hidden
6464
@EqualsAndHashCode.Exclude
65+
@Deprecated
6566
private static final String SHOP_SIGN_PREFIX = "§d§o §r";
6667

6768
@NotNull
@@ -699,7 +700,6 @@ public List<ComponentPackge> getSignText(@NotNull String locale) {
699700
Util.ensureThread(false);
700701
List<ComponentPackge> lines = new ArrayList<>();
701702
//Line 1
702-
OfflinePlayer player = plugin.getServer().getOfflinePlayer(this.getOwner());
703703
String statusStringKey = inventoryAvailable() ? "signs.status-available" : "signs.status-unavailable";
704704
lines.add(new ComponentPackge(TextComponent.fromLegacyText(plugin.text().of("signs.header", this.ownerName(false), plugin.text().of(statusStringKey).forLocale(locale)).forLocale(locale))));
705705

@@ -738,6 +738,8 @@ public List<ComponentPackge> getSignText(@NotNull String locale) {
738738
default:
739739
line2 = plugin.text().of(tradingStringKey, Integer.toString(shopRemaining)).forLocale(locale);
740740
}
741+
742+
// TODO No-longer use SHOP_SIGN_PREFIX since we use modern storage method. Pending for deletion.
741743
lines.add(new ComponentPackge(TextComponent.fromLegacyText(SHOP_SIGN_PREFIX + line2 + " ")));
742744

743745
//line 3

0 commit comments

Comments
 (0)