Skip to content

Commit

Permalink
v2.8.3
Browse files Browse the repository at this point in the history
Update to 2.8.3. Fixes /chatex reload command.
  • Loading branch information
TheJeterLP authored Jun 20, 2022
2 parents ab19d88 + 0b5d2fd commit 4089285
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
24 changes: 0 additions & 24 deletions .releaserc

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<name>ChatEx</name>
<inceptionYear>2022</inceptionYear>

<version>2.8.3-SNAPSHOT</version>
<version>2.8.3</version>
<description>ChatManagement plugin for Bukkit</description>
<url>https://www.spigotmc.org/resources/chatex-continued.71041/</url>

Expand Down
6 changes: 4 additions & 2 deletions src/main/java/de/jeter/chatex/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 4089285

Please # to comment.