Fixing the comparator and starting to use the standardized version command.
This commit is contained in:
@ -3,7 +3,10 @@ package com.massivecraft.factions.cmd;
|
||||
import java.util.Collections;
|
||||
|
||||
import com.massivecraft.factions.ConfServer;
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.Perm;
|
||||
import com.massivecraft.mcore.cmd.HelpCommand;
|
||||
import com.massivecraft.mcore.cmd.VersionCommand;
|
||||
|
||||
public class CmdFactions extends FCommand
|
||||
{
|
||||
@ -44,7 +47,7 @@ public class CmdFactions extends FCommand
|
||||
public CmdFactionsTitle cmdFactionsTitle = new CmdFactionsTitle();
|
||||
public CmdFactionsUnclaim cmdFactionsUnclaim = new CmdFactionsUnclaim();
|
||||
public CmdFactionsUnclaimall cmdFactionsUnclaimall = new CmdFactionsUnclaimall();
|
||||
public CmdFactionsVersion cmdFactionsVersion = new CmdFactionsVersion();
|
||||
public VersionCommand cmdFactionsVersion = new VersionCommand(Factions.get(), Perm.VERSION.node, "v", "version");
|
||||
|
||||
public CmdFactions()
|
||||
{
|
||||
|
@ -1,22 +0,0 @@
|
||||
package com.massivecraft.factions.cmd;
|
||||
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.Perm;
|
||||
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
||||
|
||||
|
||||
public class CmdFactionsVersion extends FCommand
|
||||
{
|
||||
public CmdFactionsVersion()
|
||||
{
|
||||
this.addAliases("version");
|
||||
|
||||
this.addRequirements(ReqHasPerm.get(Perm.VERSION.node));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void perform()
|
||||
{
|
||||
msg("<i>You are running "+Factions.get().getDescription().getFullName());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user