Add another constructor variant to VersionCommand.

This commit is contained in:
Olof Larsson 2013-08-03 12:51:48 +02:00
parent e245948ef2
commit e2e8a80de4
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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<String> aliases)
{
this(plugin, permissionName, aliases.toArray(new String[0]));
}
public VersionCommand(Plugin plugin, String permissionName, String... aliases)
{
this.plugin = plugin;