X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FVersionCommand.java;h=a7d1cd7f544b24a20a18f27d8b261cd59b30e35f;hp=c482f24b18279247bca4c6e2d4f151fdfb62dec4;hb=HEAD;hpb=6f019de1d4d9742981d851ac3c9097cca8bff58e diff --git a/src/main/java/net/pterodactylus/sone/fcp/VersionCommand.java b/src/main/java/net/pterodactylus/sone/fcp/VersionCommand.java index c482f24..a7d1cd7 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/VersionCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/VersionCommand.java @@ -1,5 +1,5 @@ /* - * Sone - VersionCommand.java - Copyright © 2011–2013 David Roden + * Sone - VersionCommand.java - Copyright © 2011–2020 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,12 +21,9 @@ import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.freenet.SimpleFieldSetBuilder; import net.pterodactylus.sone.main.SonePlugin; import freenet.support.SimpleFieldSet; -import freenet.support.api.Bucket; /** * Returns version information about the Sone plugin. - * - * @author David ‘Bombe’ Roden */ public class VersionCommand extends AbstractSoneCommand { @@ -44,8 +41,8 @@ public class VersionCommand extends AbstractSoneCommand { * {@inheritDoc} */ @Override - public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) { - return new Response("Version", new SimpleFieldSetBuilder().put("Version", SonePlugin.VERSION.toString()).put("ProtocolVersion", 1).get()); + public Response execute(SimpleFieldSet parameters) { + return new Response("Version", new SimpleFieldSetBuilder().put("Version", SonePlugin.getPluginVersion()).put("ProtocolVersion", 1).get()); } }