From 8269fee220d1d31a85d8c8a574bb11fb0ae0f77d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 21 Aug 2015 07:08:07 +0200 Subject: [PATCH] Add methods for more attributes of message --- src/main/java/net/pterodactylus/fcp/PluginInfo.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"); + } } -- 2.7.4