Correction de bug de la commande /me
This commit is contained in:
parent
0e00b9f660
commit
452da3bce8
@ -22,6 +22,8 @@ public class CommandMe implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||||
|
if (args.length == 0) return false;
|
||||||
|
|
||||||
String name;
|
String name;
|
||||||
if (sender instanceof Player)
|
if (sender instanceof Player)
|
||||||
name = ((Player)sender).getDisplayName()+ChatColor.RESET+" "+ChatColor.ITALIC;
|
name = ((Player)sender).getDisplayName()+ChatColor.RESET+" "+ChatColor.ITALIC;
|
||||||
|
Loading…
Reference in New Issue
Block a user