Do not broadcast reload messages (Fixes #60)

This commit is contained in:
GeorgH93 2020-01-10 02:57:04 +01:00
parent 17d2cc637d
commit 5a165f3dc6
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
4 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId>
<artifactId>Minepacks</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
<scm>
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>

View File

@ -26,8 +26,8 @@ Language:
Header: "&6### Minepacks Commands ###"
Footer: "&6#############################"
Reload:
Reloading: "&1Plugin wird neu geladen ..."
Reloaded: "&1Plugin neu geladen!"
Reloading: "&Minepacks wird neu geladen ..."
Reloaded: "&1Minepacks neu geladen!"
Update:
CheckingForUpdates: "&1Suche nach Aktualisierungen ..."
Updated: "[\"\",{\"text\":\"Plugin wurde aktualisiert, Änderungen werden mit dem nächsten neustart übernommen.\",\"color\":\"yellow\"}]"

View File

@ -27,8 +27,8 @@ Language:
Header: "&6### Minepacks Commands ###"
Footer: "&6#############################"
Reload:
Reloading: "&1Reloading ..."
Reloaded: "&1Reloaded!"
Reloading: "&1Reloading Minepacks ..."
Reloaded: "&1Minepacks reloaded!"
Update:
CheckingForUpdates: "&1Checking for updates ..."
Updated: "[\"\",{\"text\":\"Plugin updated, will be loaded on next restart/reload.\",\"color\":\"yellow\"}]"

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 GeorgH93
* Copyright (C) 2020 GeorgH93
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -42,9 +42,9 @@ public ReloadCommand(Minepacks plugin)
@Override
public void execute(@NotNull CommandSender sender, @NotNull String mainCommandAlias, @NotNull String alias, @NotNull String[] args)
{
messageReloading.broadcast();
messageReloading.send(sender);
((Minepacks) plugin).reload();
messageReloaded.broadcast();
messageReloaded.send(sender);
}
@Override