mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +01:00
Fix nagging for overriden commands.
This commit is contained in:
parent
d01d6bcd1b
commit
79671d08e4
@ -191,7 +191,7 @@ public class Settings implements ISettings
|
|||||||
for (String command : section.getKeys(false))
|
for (String command : section.getKeys(false))
|
||||||
{
|
{
|
||||||
PluginCommand cmd = ess.getServer().getPluginCommand(command);
|
PluginCommand cmd = ess.getServer().getPluginCommand(command);
|
||||||
if (cmd != null && !cmd.getPlugin().equals(ess))
|
if (cmd != null && !cmd.getPlugin().equals(ess) && !isCommandOverridden(command))
|
||||||
{
|
{
|
||||||
ess.getLogger().warning("Invalid command cost. '" + command + "' is not a command handled by Essentials.");
|
ess.getLogger().warning("Invalid command cost. '" + command + "' is not a command handled by Essentials.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user