mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 03:25:50 +00:00
Log target plugin in debug mode for altcmd
This commit is contained in:
parent
a480091617
commit
617959a11b
2 changed files with 5 additions and 4 deletions
|
@ -121,13 +121,14 @@ public class AlternativeCommandsHandler
|
||||||
return commands.get(0);
|
return commands.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void executed(final String label, final String otherLabel)
|
public void executed(final String label, final PluginCommand pc)
|
||||||
{
|
{
|
||||||
|
final String altString = pc.getPlugin().getName() + ":" + pc.getLabel();
|
||||||
if (ess.getSettings().isDebug())
|
if (ess.getSettings().isDebug())
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + otherLabel);
|
LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + altString);
|
||||||
}
|
}
|
||||||
disabledList.put(label, otherLabel);
|
disabledList.put(label, altString);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, String> disabledCommands()
|
public Map<String, String> disabledCommands()
|
||||||
|
|
|
@ -308,7 +308,7 @@ public class Essentials extends JavaPlugin implements IEssentials
|
||||||
final PluginCommand pc = alternativeCommandsHandler.getAlternative(commandLabel);
|
final PluginCommand pc = alternativeCommandsHandler.getAlternative(commandLabel);
|
||||||
if (pc != null)
|
if (pc != null)
|
||||||
{
|
{
|
||||||
alternativeCommandsHandler.executed(commandLabel, pc.getLabel());
|
alternativeCommandsHandler.executed(commandLabel, pc);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return pc.execute(sender, commandLabel, args);
|
return pc.execute(sender, commandLabel, args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue