Skip to content

Commit

Permalink
删除错误的文本显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Tining123 committed Jun 25, 2023
1 parent e46d925 commit 7a47cff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.Tining</groupId>
<artifactId>DemonMarket</artifactId>
<version>1.5.0</version>
<version>1.5.1</version>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tining/demonmarket/gui/AdminShopGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private static void drawPage(Inventory inventory, int pageNum, Player player) {
.chatColor(ChatColor.YELLOW)
.build();
Lore constLore = Lore.builder()
.lore(LangUtil.get("点击以编辑顺序") + shopItem.getPrice())
.lore(LangUtil.get("点击以编辑顺序"))
.chatColor(ChatColor.WHITE)
.build();
PluginUtil.addColorLore(itemStack, Collections.singletonList(lore));
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/tining/demonmarket/gui/ShopGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ private static void drawPage(Inventory inventory, int pageNum, Player player) {
.lore(LangUtil.get("售价:") + shopItem.getPrice())
.chatColor(ChatColor.YELLOW)
.build();
Lore constLore = Lore.builder()
.lore(LangUtil.get("点击以编辑顺序") + shopItem.getPrice())
.chatColor(ChatColor.WHITE)
.build();
PluginUtil.addColorLore(itemStack, Collections.singletonList(lore));
PluginUtil.addColorLore(itemStack, Collections.singletonList(constLore));
list.add(itemStack);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: DemonMarket
main: com.tining.demonmarket.Main
version: 1.5.0
version: 1.5.1
api-version: 1.13
# YAML 中的注释,一行有效
# 以上是插件基本信息,以下是命令注册
Expand Down

0 comments on commit 7a47cff

Please sign in to comment.