From 452da3bce8419cb17229d39beadf13d15ea09831 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 24 Dec 2014 19:18:12 +0100 Subject: [PATCH] Correction de bug de la commande /me --- .../plugin/pandacraftutils/simple_commands/me/CommandMe.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/me/CommandMe.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/me/CommandMe.java index 346e304..7a2000e 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/me/CommandMe.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/me/CommandMe.java @@ -22,6 +22,8 @@ public class CommandMe implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { + if (args.length == 0) return false; + String name; if (sender instanceof Player) name = ((Player)sender).getDisplayName()+ChatColor.RESET+" "+ChatColor.ITALIC;