1.1
When reloading the plugin, only the config.yml was reloaded but not the messages, this was fixed
This commit is contained in:
parent
4501fe550c
commit
b9d20ffb06
2
pom.xml
2
pom.xml
@ -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-->
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user