@Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

        Player player = (Player) sender;
        
        if(cmd.getName().equalsIgnoreCase("msg")){
                    
            if(player.hasPermission("messenger.msg")){
                
                if(args.length == 0){
                
                    player.sendMessage(ChatColor.BLUE + MPlugin.pName + ChatColor.DARK_GRAY + " >> " + ChatColor.GREEN + "Hint: Use /msg playername yourmessage");

                }else{
                    Player target = Bukkit.getServer().getPlayer(args[0]);

                    if (target == null) {

                        player.sendMessage(ChatColor.BLUE + MPlugin.pName + ChatColor.DARK_GRAY + " >> " + ChatColor.RED + "Player: " + args[0] + " is not online.");

                    }else{

                        String myString = "";

                        for(int i = 1; i < args.length; i++){
                            String arg = args[i] + " ";
                            myString = myString + arg;
                        }

                        target.sendMessage(ChatColor.LIGHT_PURPLE + "From " + ChatColor.GOLD + player.getName() + ChatColor.LIGHT_PURPLE + ": " + myString);
                        player.sendMessage(ChatColor.LIGHT_PURPLE + "Sent message to: " + ChatColor.GOLD + target.getName() + ChatColor.LIGHT_PURPLE + ".");
                    }
                }
            }else{
                player.sendMessage(ChatColor.BLUE + MPlugin.pName + ChatColor.DARK_GRAY + " >> " + ChatColor.RED + " You don't have access to this.");
            }
        }
        return true;
    }