3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Don't format if no args are given

Dieser Commit ist enthalten in:
Matsv 2016-04-02 11:58:15 +02:00
Ursprung 2e3677a592
Commit 8c706b665c

Datei anzeigen

@ -147,6 +147,6 @@ public class ViaCommandHandler implements ViaVersionCommand, CommandExecutor, Ta
} }
public static void sendMessage(@NonNull CommandSender sender, String message, Object... args) { 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)));
} }
} }