Clarification des messages d'erreurs lors de l'exécution d'une commande via le NetworkAPI
This commit is contained in:
parent
3a1095adad
commit
b51eb89f8d
@ -20,7 +20,7 @@ public class RequestExecutorCommand extends AbstractRequestExecutor {
|
|||||||
boolean succes = plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), command);
|
boolean succes = plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), command);
|
||||||
|
|
||||||
if (!succes)
|
if (!succes)
|
||||||
plugin.getLogger().warning("Can't execute command");
|
plugin.getLogger().warning("La commande ne peut pas s'exécuter : /"+command);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ public class RequestExecutorCommandAsync extends AbstractRequestExecutor {
|
|||||||
|
|
||||||
if (!rep.good)
|
if (!rep.good)
|
||||||
{
|
{
|
||||||
plugin.getLogger().warning("Can't execute command");
|
plugin.getLogger().warning("La commande ne peut pas s'exécuter : /"+data);
|
||||||
rep.data = "command sent but CommandExecutor has not return success";
|
rep.data = "command sent but CommandExecutor has not return success";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user