From e1789eb521069bed53eab09084f9cee91b3d46f9 Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Mon, 20 Jun 2022 16:36:23 +0200 Subject: [PATCH 1/2] remove unused file --- .releaserc | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .releaserc diff --git a/.releaserc b/.releaserc deleted file mode 100644 index 14e6ad9..0000000 --- a/.releaserc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "branches": [ - "master", - { - "name": "dev", - "prerelease": true - } - ], - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - [ - "@semantic-release/github", - { - "assets": [ - { - "path": "target/ChatEx.jar" - } - ] - } - ] - ] -} From 9d1d0a3a099e62dd862a85952130223cd4cda4b4 Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Mon, 20 Jun 2022 16:55:04 +0200 Subject: [PATCH 2/2] [FIX] Fix plugin breaking after /chatex reload is being used. Push to 2.8.3 --- pom.xml | 2 +- src/main/java/de/jeter/chatex/CommandHandler.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 0378e51..0120fc5 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ChatEx 2022 - 2.8.3-SNAPSHOT + 2.8.3 ChatManagement plugin for Bukkit https://www.spigotmc.org/resources/chatex-continued.71041/ diff --git a/src/main/java/de/jeter/chatex/CommandHandler.java b/src/main/java/de/jeter/chatex/CommandHandler.java index 5d6ec86..e8d096e 100644 --- a/src/main/java/de/jeter/chatex/CommandHandler.java +++ b/src/main/java/de/jeter/chatex/CommandHandler.java @@ -41,8 +41,10 @@ public boolean onCommand(CommandSender sender, Command command, String label, St } else { if (args[0].equalsIgnoreCase("reload")) { if (sender.hasPermission("chatex.reload")) { - Bukkit.getPluginManager().disablePlugin(ChatEx.getInstance()); - Bukkit.getPluginManager().enablePlugin(ChatEx.getInstance()); + + ChatEx.getInstance().onDisable(); + ChatEx.getInstance().onEnable(); + sender.sendMessage(Locales.MESSAGES_RELOAD.getString(null)); if (Config.CHANGE_TABLIST_NAME.getBoolean()) {