From 8c706b665c09f77492a5035fae601d0939bdf18e Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 2 Apr 2016 11:58:15 +0200 Subject: [PATCH] Don't format if no args are given --- .../java/us/myles/ViaVersion/commands/ViaCommandHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java b/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java index b64cfaf25..deab22688 100644 --- a/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java +++ b/src/main/java/us/myles/ViaVersion/commands/ViaCommandHandler.java @@ -147,6 +147,6 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta } public static void sendMessage(@NonNull CommandSender sender, String message, Object... args) { - sender.sendMessage(color(String.format(message, args))); + sender.sendMessage(color(args == null ? message : String.format(message, args))); } }