mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
Remove command cost warnings from plugin matching.
This commit is contained in:
@@ -191,11 +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) && !isCommandOverridden(command))
|
if (command.charAt(0) == '/')
|
||||||
{
|
|
||||||
ess.getLogger().warning("Invalid command cost. '" + command + "' is not a command handled by Essentials.");
|
|
||||||
}
|
|
||||||
else if (command.charAt(0) == '/')
|
|
||||||
{
|
{
|
||||||
ess.getLogger().warning("Invalid command cost. '" + command + "' should not start with '/'.");
|
ess.getLogger().warning("Invalid command cost. '" + command + "' should not start with '/'.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user