From 5a165f3dc6201a54ab374409e6365ed1c9297be7 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Fri, 10 Jan 2020 02:57:04 +0100 Subject: [PATCH] Do not broadcast reload messages (Fixes #60) --- pom.xml | 2 +- resources/lang/de.yml | 4 ++-- resources/lang/en.yml | 4 ++-- .../Minepacks/Bukkit/Command/ReloadCommand.java | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 18fd6aa..0c9d0d5 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 at.pcgamingfreaks Minepacks - 2.1.2 + 2.1.3 scm:git:git@github.com:GeorgH93/Minepacks.git diff --git a/resources/lang/de.yml b/resources/lang/de.yml index 62d40fe..5a7b832 100644 --- a/resources/lang/de.yml +++ b/resources/lang/de.yml @@ -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\"}]" diff --git a/resources/lang/en.yml b/resources/lang/en.yml index b93fc96..bfcf432 100644 --- a/resources/lang/en.yml +++ b/resources/lang/en.yml @@ -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\"}]" diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/ReloadCommand.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/ReloadCommand.java index 9e984f1..7b7c5c0 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/ReloadCommand.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Command/ReloadCommand.java @@ -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