Improve message sending

This commit is contained in:
libraryaddict
2020-07-03 17:36:29 +12:00
parent 3ced8ae9e4
commit e74df537bb
26 changed files with 109 additions and 97 deletions

View File

@@ -95,10 +95,10 @@ public class LDUpdate implements LDCommand {
if (!forceUpdate) {
if (updateResult != null) {
sender.sendMessage(updateResult.get());
DisguiseUtilities.sendMessage(sender, updateResult);
} else {
for (String msg : checker.getUpdateMessage()) {
sender.sendMessage(msg);
DisguiseUtilities.sendMessage(sender, msg);
}
}
@@ -113,7 +113,7 @@ public class LDUpdate implements LDCommand {
}
for (String msg : checker.getUpdateMessage()) {
sender.sendMessage(msg);
DisguiseUtilities.sendMessage(sender, msg);
}
if (sender instanceof Player) {