Add some parameter descriptions
there are more to come
This commit is contained in:
parent
1b0f2d29f8
commit
1e20892392
@ -26,7 +26,7 @@ public class CmdFactionsCreate extends FactionsCommand
|
|||||||
this.addAliases("new");
|
this.addAliases("new");
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFactionNameStrict.get(), "name");
|
this.addParameter(TypeFactionNameStrict.get(), "name").setDesc("the name of your new faction");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(ReqHasntFaction.get());
|
this.addRequirements(ReqHasntFaction.get());
|
||||||
|
@ -17,7 +17,7 @@ public class CmdFactionsDescription extends FactionsCommand
|
|||||||
public CmdFactionsDescription()
|
public CmdFactionsDescription()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeString.get(), "desc", true);
|
this.addParameter(TypeString.get(), "desc", true).setDesc("the new faction desciption");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(ReqHasFaction.get());
|
this.addRequirements(ReqHasFaction.get());
|
||||||
|
@ -30,11 +30,11 @@ public class CmdFactionsDocumentationWarps extends FactionsCommandDocumentation
|
|||||||
|
|
||||||
if (MConf.get().warpsMax < 0)
|
if (MConf.get().warpsMax < 0)
|
||||||
{
|
{
|
||||||
msgDoc("There is no limit to how many warps a faction can have.");
|
msgDoc("There is <h>no limit <i>to how many warps a faction can have.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msgDoc("There is no limit to how many warps a faction can have.");
|
msgDoc("A faction can only have <h>%d <i>warps.", MConf.get().warpsMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MConf.get().warpsMustBeInClaimedTerritory)
|
if (MConf.get().warpsMustBeInClaimedTerritory)
|
||||||
|
@ -22,7 +22,7 @@ public class CmdFactionsFaction extends FactionsCommand
|
|||||||
public CmdFactionsFaction()
|
public CmdFactionsFaction()
|
||||||
{
|
{
|
||||||
// Aliases
|
// Aliases
|
||||||
this.addAliases("f", "show", "who");
|
this.addAliases("f", "show", "who").setDesc("the faction to show info about");
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you");
|
||||||
|
@ -18,9 +18,9 @@ public class CmdFactionsFlagSet extends FactionsCommand
|
|||||||
public CmdFactionsFlagSet()
|
public CmdFactionsFlagSet()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeMFlag.get(), "flag");
|
this.addParameter(TypeMFlag.get(), "flag").setDesc("the faction flag to set a value for");
|
||||||
this.addParameter(TypeBooleanYes.get(), "yes/no");
|
this.addParameter(TypeBooleanYes.get(), "yes/no").setDesc("should the flag be on or off?");
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction to set the flag for (per default your own)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -20,7 +20,7 @@ public class CmdFactionsFlagShow extends FactionsCommand
|
|||||||
public CmdFactionsFlagShow()
|
public CmdFactionsFlagShow()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction to show flags for");
|
||||||
this.addParameter(Parameter.getPage());
|
this.addParameter(Parameter.getPage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public class CmdFactionsInviteAdd extends FactionsCommand
|
|||||||
public CmdFactionsInviteAdd()
|
public CmdFactionsInviteAdd()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeSet.get(TypeMPlayer.get()), "players", true);
|
this.addParameter(TypeSet.get(TypeMPlayer.get()), "players", true).setDesc("the player to invite");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -32,7 +32,7 @@ public class CmdFactionsInviteList extends FactionsCommand
|
|||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(Parameter.getPage());
|
this.addParameter(Parameter.getPage());
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction to list invites for");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -23,7 +23,7 @@ public class CmdFactionsInviteRemove extends FactionsCommand
|
|||||||
public CmdFactionsInviteRemove()
|
public CmdFactionsInviteRemove()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeSet.get(TypeMPlayer.get()), "players/all", true);
|
this.addParameter(TypeSet.get(TypeMPlayer.get()), "players/all", true).setDesc("the player to deinvite");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -24,8 +24,8 @@ public class CmdFactionsJoin extends FactionsCommand
|
|||||||
public CmdFactionsJoin()
|
public CmdFactionsJoin()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFaction.get(), "faction");
|
this.addParameter(TypeFaction.get(), "faction").setDesc("the faction to join");
|
||||||
this.addParameter(TypeMPlayer.get(), "player", "you");
|
this.addParameter(TypeMPlayer.get(), "player", "you").setDesc("the player that should join tje faction (for admins only)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -22,7 +22,7 @@ public class CmdFactionsKick extends FactionsCommand
|
|||||||
public CmdFactionsKick()
|
public CmdFactionsKick()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeMPlayer.get(), "player");
|
this.addParameter(TypeMPlayer.get(), "player").setDesc("the player to kick");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -15,7 +15,7 @@ public class CmdFactionsMap extends FactionsCommand
|
|||||||
public CmdFactionsMap()
|
public CmdFactionsMap()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeBooleanYes.get(), "on/off", "once");
|
this.addParameter(TypeBooleanYes.get(), "on/off", "once").setDesc("set to yes to get an auto updating map\nset to no to disable");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(RequirementIsPlayer.get());
|
this.addRequirements(RequirementIsPlayer.get());
|
||||||
|
@ -16,7 +16,7 @@ public class CmdFactionsMoneyBalance extends FactionsCommand
|
|||||||
public CmdFactionsMoneyBalance()
|
public CmdFactionsMoneyBalance()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction whose balance to check");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(ReqBankCommandsEnabled.get());
|
this.addRequirements(ReqBankCommandsEnabled.get());
|
||||||
|
@ -21,8 +21,8 @@ public class CmdFactionsMoneyDeposit extends FactionsCommand
|
|||||||
public CmdFactionsMoneyDeposit()
|
public CmdFactionsMoneyDeposit()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeDouble.get(), "amount");
|
this.addParameter(TypeDouble.get(), "amount").setDesc("the amount of money to deposit");
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction to deposit money to");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(ReqBankCommandsEnabled.get());
|
this.addRequirements(ReqBankCommandsEnabled.get());
|
||||||
|
@ -29,9 +29,9 @@ public class CmdFactionsMoneyTransferFf extends FactionsCommand
|
|||||||
this.addAliases("ff");
|
this.addAliases("ff");
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeDouble.get(), "amount");
|
this.addParameter(TypeDouble.get(), "amount").setDesc("the amount of money to transfer");
|
||||||
this.addParameter(TypeFaction.get(), "faction");
|
this.addParameter(TypeFaction.get(), "faction").setDesc("the faction to transfer money from");
|
||||||
this.addParameter(TypeFaction.get(), "faction");
|
this.addParameter(TypeFaction.get(), "faction").setDesc("the faction to transfer money to");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_F2F));
|
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_F2F));
|
||||||
|
@ -31,9 +31,9 @@ public class CmdFactionsMoneyTransferFp extends FactionsCommand
|
|||||||
this.addAliases("fp");
|
this.addAliases("fp");
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeDouble.get(), "amount");
|
this.addParameter(TypeDouble.get(), "amount").setDesc("the amount of money to transfer");
|
||||||
this.addParameter(TypeFaction.get(), "faction");
|
this.addParameter(TypeFaction.get(), "faction").setDesc("the faction to transfer money from");
|
||||||
this.addParameter(TypeMPlayer.get(), "player");
|
this.addParameter(TypeMPlayer.get(), "player").setDesc("the player to transfer money to");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_F2P));
|
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_F2P));
|
||||||
|
@ -31,9 +31,9 @@ public class CmdFactionsMoneyTransferPf extends FactionsCommand
|
|||||||
this.addAliases("pf");
|
this.addAliases("pf");
|
||||||
|
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeDouble.get(), "amount");
|
this.addParameter(TypeDouble.get(), "amount").setDesc("the amount of money to transfer");
|
||||||
this.addParameter(TypeMPlayer.get(), "player");
|
this.addParameter(TypeMPlayer.get(), "player").setDesc("the player to transfer money from");
|
||||||
this.addParameter(TypeFaction.get(), "faction");
|
this.addParameter(TypeFaction.get(), "faction").setDesc("the faction to transfer money to");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_P2F));
|
this.addRequirements(RequirementHasPerm.get(Perm.MONEY_P2F));
|
||||||
|
@ -22,8 +22,8 @@ public class CmdFactionsMoneyWithdraw extends FactionsCommand
|
|||||||
public CmdFactionsMoneyWithdraw()
|
public CmdFactionsMoneyWithdraw()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeDouble.get(), "amount");
|
this.addParameter(TypeDouble.get(), "amount").setDesc("the amount of money to withdraw");
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction to transfer money to");
|
||||||
|
|
||||||
// Requirements
|
// Requirements
|
||||||
this.addRequirements(ReqBankCommandsEnabled.get());
|
this.addRequirements(ReqBankCommandsEnabled.get());
|
||||||
|
@ -19,7 +19,7 @@ public class CmdFactionsMotd extends FactionsCommand
|
|||||||
public CmdFactionsMotd()
|
public CmdFactionsMotd()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeNullable.get(TypeString.get()), "new", "read", true);
|
this.addParameter(TypeNullable.get(TypeString.get()), "new", "read", true).setDesc("the new motd\nif not specified you will just see the current one");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -3,14 +3,9 @@ package com.massivecraft.factions.cmd;
|
|||||||
import com.massivecraft.factions.cmd.type.TypeFaction;
|
import com.massivecraft.factions.cmd.type.TypeFaction;
|
||||||
import com.massivecraft.factions.cmd.type.TypeFactionNameLenient;
|
import com.massivecraft.factions.cmd.type.TypeFactionNameLenient;
|
||||||
import com.massivecraft.factions.entity.Faction;
|
import com.massivecraft.factions.entity.Faction;
|
||||||
import com.massivecraft.factions.entity.FactionColl;
|
|
||||||
import com.massivecraft.factions.entity.MPerm;
|
import com.massivecraft.factions.entity.MPerm;
|
||||||
import com.massivecraft.factions.event.EventFactionsNameChange;
|
import com.massivecraft.factions.event.EventFactionsNameChange;
|
||||||
import com.massivecraft.factions.util.MiscUtil;
|
|
||||||
import com.massivecraft.massivecore.MassiveException;
|
import com.massivecraft.massivecore.MassiveException;
|
||||||
import com.massivecraft.massivecore.command.type.primitive.TypeString;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
public class CmdFactionsName extends FactionsCommand
|
public class CmdFactionsName extends FactionsCommand
|
||||||
{
|
{
|
||||||
@ -21,8 +16,8 @@ public class CmdFactionsName extends FactionsCommand
|
|||||||
public CmdFactionsName()
|
public CmdFactionsName()
|
||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(TypeFactionNameLenient.get(), "new name");
|
this.addParameter(TypeFactionNameLenient.get(), "new name").setDesc("the new name of the faction");
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction whose name to change");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
@ -28,8 +28,8 @@ public class CmdFactionsStatus extends FactionsCommand
|
|||||||
{
|
{
|
||||||
// Parameters
|
// Parameters
|
||||||
this.addParameter(Parameter.getPage());
|
this.addParameter(Parameter.getPage());
|
||||||
this.addParameter(TypeFaction.get(), "faction", "you");
|
this.addParameter(TypeFaction.get(), "faction", "you").setDesc("the faction whose status to see");
|
||||||
this.addParameter(TypeSortMPlayer.get(), "sort", "time");
|
this.addParameter(TypeSortMPlayer.get(), "sort", "time").setDesc("sort mplayers by rank, power or last active time?");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user