From a875c807eb4bd897d85ddec77b764789c7c72518 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 22 Aug 2015 00:34:51 +0200 Subject: [PATCH] Add second constructor to GetPluginInfo command --- .../java/net/pterodactylus/fcp/GetPluginInfo.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java b/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java index 8ad5392..12e446e 100644 --- a/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java +++ b/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java @@ -26,20 +26,20 @@ package net.pterodactylus.fcp; */ public class GetPluginInfo extends FcpMessage { - /** - * Creates a new “GetPluginInfo” message. - * - * @param pluginName - * The name of the plugin - * @param identifier - * The identifier of the request - */ - public GetPluginInfo(String pluginName, String identifier) { + public GetPluginInfo(String identifier) { super("GetPluginInfo"); - setField("PluginName", pluginName); setField("Identifier", identifier); } + public GetPluginInfo(String pluginName, String identifier) { + this(identifier); + setField("PluginName", pluginName); + } + + public void setPluginName(String pluginName) { + setField("PluginName", pluginName); + } + /** * Sets whether detailed information about the plugin is wanted. * -- 2.7.4