summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-01-14 16:53:18 +0000
committerKHobbits <rob@khobbits.co.uk>2012-01-14 16:53:18 +0000
commit6e82419c1573b7f8ee912862cedc65e83af2b93d (patch)
treec2e1ac4ee41ae977118958744deed15e522f0090
parent3f6b9586b4da7fc5d9f2ec0a9c2d76d28b1b5a7c (diff)
downloadEssentials-6e82419c1573b7f8ee912862cedc65e83af2b93d.tar
Essentials-6e82419c1573b7f8ee912862cedc65e83af2b93d.tar.gz
Essentials-6e82419c1573b7f8ee912862cedc65e83af2b93d.tar.lz
Essentials-6e82419c1573b7f8ee912862cedc65e83af2b93d.tar.xz
Essentials-6e82419c1573b7f8ee912862cedc65e83af2b93d.zip
Allowing use of aliases in help/info/motd, for command suggestions.
Test #1441
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelp.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandinfo.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmotd.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
index 328f692ea..769aac483 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
@@ -41,7 +41,7 @@ public class Commandhelp extends EssentialsCommand
output = new KeywordReplacer(input, user, ess);
}
final TextPager pager = new TextPager(output);
- pager.showPage(pageStr, chapterPageStr, "help", user);
+ pager.showPage(pageStr, chapterPageStr, commandLabel, user);
}
@Override
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java b/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java
index e75eeed9a..afe1add72 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandinfo.java
@@ -21,6 +21,6 @@ public class Commandinfo extends EssentialsCommand
final IText input = new TextInput(sender, "info", true, ess);
final IText output = new KeywordReplacer(input, sender, ess);
final TextPager pager = new TextPager(output);
- pager.showPage(args.length > 0 ? args[0] : null, args.length > 1 ? args[1] : null, "info", sender);
+ pager.showPage(args.length > 0 ? args[0] : null, args.length > 1 ? args[1] : null, commandLabel, sender);
}
}
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmotd.java b/Essentials/src/com/earth2me/essentials/commands/Commandmotd.java
index 78ca5c306..0031504e8 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmotd.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmotd.java
@@ -21,6 +21,6 @@ public class Commandmotd extends EssentialsCommand
final IText input = new TextInput(sender, "motd", true, ess);
final IText output = new KeywordReplacer(input, sender, ess);
final TextPager pager = new TextPager(output);
- pager.showPage(args.length > 0 ? args[0] : null, args.length > 1 ? args[1] : null, "motd", sender);
+ pager.showPage(args.length > 0 ? args[0] : null, args.length > 1 ? args[1] : null, commandLabel, sender);
}
}