From: David ‘Bombe’ Roden Date: Fri, 21 Aug 2015 05:08:07 +0000 (+0200) Subject: Add methods for more attributes of message X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8269fee220d1d31a85d8c8a574bb11fb0ae0f77d;p=jFCPlib.git Add methods for more attributes of message --- diff --git a/src/main/java/net/pterodactylus/fcp/PluginInfo.java b/src/main/java/net/pterodactylus/fcp/PluginInfo.java index fa23f84..bf11be8 100644 --- a/src/main/java/net/pterodactylus/fcp/PluginInfo.java +++ b/src/main/java/net/pterodactylus/fcp/PluginInfo.java @@ -73,4 +73,15 @@ public class PluginInfo extends BaseMessage implements Identifiable { return Boolean.valueOf(getField("Started")); } + public boolean isTalkable() { + return Boolean.valueOf(getField("IsTalkable")); + } + + public String getVersion() { + return getField("Version"); + } + + public String getLongVersion() { + return getField("LongVersion"); + } }