Now showing help page #1 by default if no page number is given
This commit is contained in:
parent
95b776af16
commit
626c2bbba1
@ -18,13 +18,13 @@ namespace TrueCraft.Commands
|
|||||||
|
|
||||||
public override void Handle(IRemoteClient client, string alias, string[] arguments)
|
public override void Handle(IRemoteClient client, string alias, string[] arguments)
|
||||||
{
|
{
|
||||||
if (arguments.Length < 1)
|
if (arguments.Length > 1)
|
||||||
{
|
{
|
||||||
Help(client, alias, arguments);
|
Help(client, alias, arguments);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var identifier = arguments.Length >= 1 ? arguments[0] : "0";
|
var identifier = arguments.Length == 1 ? arguments[0] : "1";
|
||||||
|
|
||||||
ICommand found;
|
ICommand found;
|
||||||
if ((found = Program.CommandManager.FindByName(identifier)) != null)
|
if ((found = Program.CommandManager.FindByName(identifier)) != null)
|
||||||
|
Reference in New Issue
Block a user