Skip to content

Commit

Permalink
Supporting the trmenu and others advance menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tining123 committed Aug 22, 2022
1 parent b4e6114 commit 5ba306a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.3.7</version>
<version>1.3.8</version>
<build>
<plugins>
<plugin>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/tining/demonmarket/event/ChestGuiEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public void disableMove(InventoryClickEvent e) {
e.setCancelled(true);
}
}
else if(Objects.equals(LangUtil.get("收购箱"),e.getView().getTitle())){
if(ChestGui.isPriceIndex(e.getSlot())) {
e.setCancelled(true);
}
}
}
}

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.3.7
version: 1.3.8
api-version: 1.13
# YAML 中的注释,一行有效
# 以上是插件基本信息,以下是命令注册
Expand Down

0 comments on commit 5ba306a

Please sign in to comment.