When reloading the plugin, only the config.yml was reloaded but not the messages, this was fixed
This commit is contained in:
JaTiTV 2023-07-06 16:15:02 +02:00
parent 4501fe550c
commit b9d20ffb06
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>AutomatedMessages</artifactId>
<version>1.0</version>
<version>1.1</version>
<!--version>VERSION_snapshot-0</version-->
<!--version>VERSION_beta-0</version-->
<!--version>VERSION_dev-0</version-->

View File

@ -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);

View File

@ -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.