projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add second constructor to GetPluginInfo command
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
GetPluginInfo.java
diff --git
a/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java
b/src/main/java/net/pterodactylus/fcp/GetPluginInfo.java
index
8ad5392
..
12e446e
100644
(file)
--- 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 {
*/
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");
super("GetPluginInfo");
- setField("PluginName", pluginName);
setField("Identifier", identifier);
}
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.
*
/**
* Sets whether detailed information about the plugin is wanted.
*