Add another constructor variant to VersionCommand.
This commit is contained in:
parent
e245948ef2
commit
e2e8a80de4
@ -1,6 +1,6 @@
|
|||||||
main: com.massivecraft.mcore.MCore
|
main: com.massivecraft.mcore.MCore
|
||||||
name: mcore
|
name: mcore
|
||||||
version: 6.5.1
|
version: 6.5.2_dev
|
||||||
website: http://massivecraft.com/mcore
|
website: http://massivecraft.com/mcore
|
||||||
authors: [Cayorion]
|
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
|
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
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.massivecraft.mcore.cmd;
|
package com.massivecraft.mcore.cmd;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
@ -24,6 +25,11 @@ public class VersionCommand extends MCommand
|
|||||||
// CONSTRUCT
|
// 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)
|
public VersionCommand(Plugin plugin, String permissionName, String... aliases)
|
||||||
{
|
{
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
|
Loading…
Reference in New Issue
Block a user