Skip to content

Commit

Permalink
1.4.4 重载插件的时候关闭全部当前打开的菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
handy committed Dec 21, 2024
1 parent 8ac209e commit f117254
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
<groupId>cn.handyplus.menu</groupId>
<name>PlayerMenu</name>
<artifactId>PlayerMenu</artifactId>
<version>1.4.3</version>
<version>1.4.4</version>
<description>一个有点好用的玩家菜单插件</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spigot-api.vesion>1.21.4-R0.1-SNAPSHOT</spigot-api.vesion>
<placeholderapi.version>2.11.6</placeholderapi.version>
<lombok.version>1.18.36</lombok.version>
<HandyLib.version>3.14.0</HandyLib.version>
<HandyLib.version>3.14.1</HandyLib.version>
<VaultAPI.vesion>1.7</VaultAPI.vesion>
<PlayerPoints.version>3.2.7</PlayerPoints.version>
<PlayerGuild.version>1.15.0</PlayerGuild.version>
<PlayerCurrency.version>1.0.4</PlayerCurrency.version>
<PlayerCurrency.version>1.0.5</PlayerCurrency.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cn.handyplus.menu.command.admin;

import cn.handyplus.lib.command.IHandyCommandEvent;
import cn.handyplus.lib.inventory.HandyInventoryUtil;
import cn.handyplus.lib.util.BaseUtil;
import cn.handyplus.lib.util.MessageUtil;
import cn.handyplus.menu.util.ConfigUtil;
Expand All @@ -24,14 +25,12 @@ public String permission() {
return "playerMenu.reload";
}

@Override
public boolean isAsync() {
return true;
}

@Override
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
// 重载配置
ConfigUtil.init();
// 同步关闭当前打开的gui
HandyInventoryUtil.closeHandyInventory();
MessageUtil.sendMessage(sender, BaseUtil.getMsgNotColor("reloadMsg"));
}

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: PlayerMenu
main: cn.handyplus.menu.PlayerMenu
version: 1.4.3
version: 1.4.4
author: handy
api-version: 1.13
website: https://ricedoc.handyplus.cn/wiki/PlayerMenu/log/
Expand Down

0 comments on commit f117254

Please sign in to comment.