From b9d20ffb06cf989e73b10ff466725dda4e75c728 Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Thu, 6 Jul 2023 16:15:02 +0200 Subject: [PATCH] 1.1 When reloading the plugin, only the config.yml was reloaded but not the messages, this was fixed --- pom.xml | 2 +- .../java/net/t2code/automatedMessages/command/Commands.java | 6 ++++-- src/main/resources/plugin.yml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index b00fa13..751397f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code AutomatedMessages - 1.0 + 1.1 diff --git a/src/main/java/net/t2code/automatedMessages/command/Commands.java b/src/main/java/net/t2code/automatedMessages/command/Commands.java index 9eec7c6..a2839d9 100644 --- a/src/main/java/net/t2code/automatedMessages/command/Commands.java +++ b/src/main/java/net/t2code/automatedMessages/command/Commands.java @@ -3,6 +3,7 @@ package net.t2code.automatedMessages.command; import net.t2code.automatedMessages.Util; import net.t2code.automatedMessages.config.Config; import net.t2code.automatedMessages.config.FileBuild; +import net.t2code.automatedMessages.config.messages.MessagesSelect; import net.t2code.automatedMessages.messages.Management; import net.t2code.automatedMessages.system.Main; import net.t2code.t2codelib.SPIGOT.api.messages.T2Csend; @@ -11,12 +12,13 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class Commands { - public static void reload(CommandSender sender) { + public static void reload(CommandSender sender) { T2Csend.console(Config.msgReloadStart.valueString); if (sender instanceof Player) T2Csend.sender(sender, Config.msgReloadStart.valueString); Management.end(); - FileBuild.selectConfig(); + FileBuild.selectConfig(); + MessagesSelect.select(); Management.start(); if (sender instanceof Player) T2Csend.sender(sender, Config.msgReloadEnd.valueString); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8a1a12b..efc0ead 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,6 +5,7 @@ main: net.t2code.automatedMessages.system.Main api-version: 1.13 softdepend: [ T2CodeLib ] authors: [ JaTiTV ] +website: https://www.spigotmc.org/resources/110801/ commands: t2c-automatedmessages: description: T2C-AutomatedMessages Main Command.