diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandhelp.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhelp.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java index 36b93e82b..03cd37374 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java @@ -1,12 +1,12 @@ package com.earth2me.essentials.commands; +import com.earth2me.essentials.CommandSource; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import com.earth2me.essentials.textreader.*; import com.earth2me.essentials.utils.NumberUtil; import java.util.Locale; import org.bukkit.Server; -import org.bukkit.command.CommandSender; public class Commandhelp extends EssentialsCommand @@ -23,7 +23,7 @@ public class Commandhelp extends EssentialsCommand String pageStr = args.length > 0 ? args[0] : null; String chapterPageStr = args.length > 1 ? args[1] : null; String command = commandLabel; - final IText input = new TextInput(user.getBase(), "help", false, ess); + final IText input = new TextInput(user.getSource(), "help", false, ess); if (input.getLines().isEmpty()) { @@ -45,14 +45,14 @@ public class Commandhelp extends EssentialsCommand } else { - output = new KeywordReplacer(input, user.getBase(), ess); + output = new KeywordReplacer(input, user.getSource(), ess); } final TextPager pager = new TextPager(output); - pager.showPage(pageStr, chapterPageStr, command, user.getBase()); + pager.showPage(pageStr, chapterPageStr, command, user.getSource()); } @Override - protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception + protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception { sender.sendMessage(_("helpConsole")); } |