From e2e8a80de4281564204132bf12974efe588138fd Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Sat, 3 Aug 2013 12:51:48 +0200 Subject: [PATCH] Add another constructor variant to VersionCommand. --- plugin.yml | 2 +- src/com/massivecraft/mcore/cmd/VersionCommand.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index 69e0b240..e3f8e455 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ main: com.massivecraft.mcore.MCore name: mcore -version: 6.5.1 +version: 6.5.2_dev website: http://massivecraft.com/mcore authors: [Cayorion] description: §eMCore stands for MassiveCraft Core and is a plugin that contains libraries and features that other plugins make use of. §aCayorion §efrom the minecraft server §aMassiveCraft §eis the lead programmer. Feel free to visit us at §bhttp://massivecraft.com diff --git a/src/com/massivecraft/mcore/cmd/VersionCommand.java b/src/com/massivecraft/mcore/cmd/VersionCommand.java index b2addaee..36f0e797 100644 --- a/src/com/massivecraft/mcore/cmd/VersionCommand.java +++ b/src/com/massivecraft/mcore/cmd/VersionCommand.java @@ -1,5 +1,6 @@ package com.massivecraft.mcore.cmd; +import java.util.Collection; import java.util.List; import org.bukkit.plugin.Plugin; @@ -24,6 +25,11 @@ public class VersionCommand extends MCommand // CONSTRUCT // -------------------------------------------- // + public VersionCommand(Plugin plugin, String permissionName, Collection aliases) + { + this(plugin, permissionName, aliases.toArray(new String[0])); + } + public VersionCommand(Plugin plugin, String permissionName, String... aliases) { this.plugin = plugin;